diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-01-18 17:54:45 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-01-18 17:56:26 +0100 |
commit | 3c17f06231480080bfe7d47070566e9f1194d8a6 (patch) | |
tree | 35574c46fabbd99c757e66ab74a2a2e2056cd1f9 /neovim | |
parent | 73f9069ba81ec2a20011e3a65ed68e8f377c1817 (diff) | |
download | dotfiles-3c17f06231480080bfe7d47070566e9f1194d8a6.tar.gz dotfiles-3c17f06231480080bfe7d47070566e9f1194d8a6.tar.bz2 dotfiles-3c17f06231480080bfe7d47070566e9f1194d8a6.zip |
nvim: add per-project settings loader
Diffstat (limited to 'neovim')
-rw-r--r-- | neovim/.config/nvim/init.vim | 14 |
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' |