feat(nvim): enable nvim support in lua lsp
parent
920f98ca75
commit
117c6aabc2
|
@ -145,6 +145,7 @@
|
|||
nvim-lspconfig
|
||||
lsp-status-nvim
|
||||
rust-tools-nvim
|
||||
lua-dev-nvim
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue