summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--neovim/.config/nvim/init.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim
index 3013417..1ad29d6 100644
--- a/neovim/.config/nvim/init.vim
+++ b/neovim/.config/nvim/init.vim
@@ -72,6 +72,8 @@ Plug 'neomake/neomake'
" Pre-built configurations for the neovim LSP client
Plug 'neovim/nvim-lspconfig'
+" Allow for better project-local settings
+Plug 'tamago324/nlsp-settings.nvim'
" List all symbols in the file
Plug 'simrat39/symbols-outline.nvim'
@@ -166,6 +168,18 @@ lsp_status.config({
status_symbol = "",
})
+-- Set up per-project LSP settings. Place them in the
+-- .nlsp-settings/<langserver>.json
+-- file, or use
+-- :LspSettings local <langserver>
+require("nlspsettings").setup({
+ config_home = vim.fn.stdpath('config') .. '/nlsp-settings',
+ local_settings_dir = ".nlsp-settings",
+ local_settings_root_markers_fallback = { '.git' },
+ append_default_schemas = true,
+ loader = 'json',
+})
+
-- Setup nvim-cmp.
local cmp = require'cmp'