From 4109528f056003bed080feca9f14222ec51aec6e Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Tue, 23 May 2023 13:49:18 -0700 Subject: [PATCH] update lsp configuration to remove deprecation warning on nvim start --- nix/home/programs/nvim/nvim-lspconfig.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nix/home/programs/nvim/nvim-lspconfig.lua b/nix/home/programs/nvim/nvim-lspconfig.lua index 5458454..90c0316 100644 --- a/nix/home/programs/nvim/nvim-lspconfig.lua +++ b/nix/home/programs/nvim/nvim-lspconfig.lua @@ -151,15 +151,15 @@ nvim_lsp.tsserver.setup { } } nvim_lsp.elixirls.setup { - cmd = { "elixir-ls" }; + cmd = { "elixir-ls" }, } nvim_lsp.rnix.setup { - cmd = { "@rnix_lsp@/bin/rnix-lsp" }; + cmd = { "@rnix_lsp@/bin/rnix-lsp" }, } nvim_lsp.rust_analyzer.setup {} -nvim_lsp.sumneko_lua.setup { - cmd = { "@lua_ls@/bin/lua-language-server" }; +nvim_lsp.lua_ls.setup { + cmd = { "@lua_ls@/bin/lua-language-server" }, single_file_support = true, flags = { debounce_text_changes = 150, @@ -170,7 +170,7 @@ nvim_lsp.sumneko_lua.setup { globals = { 'vim' } } } - }; + }, } nvim_lsp.texlab.setup {}