feat(nvim): enable nvim support in lua lsp

main
mandlm 2022-06-24 13:08:02 +02:00
parent 920f98ca75
commit 117c6aabc2
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 11 additions and 10 deletions

View File

@ -145,6 +145,7 @@
nvim-lspconfig
lsp-status-nvim
rust-tools-nvim
lua-dev-nvim
];
extraConfig = ''

View File

@ -46,16 +46,6 @@ capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
local servers = {
["bashls"] = {},
["sumneko_lua"] = {
Lua = {
diagnostics = {
globals = { "vim" },
},
telemetry = {
enable = false,
},
},
},
["rnix"] = {},
["terraformls"] = {},
["tflint"] = {},
@ -88,3 +78,13 @@ require("rust-tools").setup({
capabilities = capabilities,
},
})
local luadev = require("lua-dev").setup({
lspconfig = {
on_attach = on_attach,
capabilities = capabilities,
},
runtime_path = true,
})
lspconfig["sumneko_lua"].setup(luadev)