feat: replace sumneko with lua-language-server
parent
f12de71a00
commit
4b7e56c757
|
@ -49,7 +49,7 @@ in
|
||||||
xclip
|
xclip
|
||||||
|
|
||||||
# language servers
|
# language servers
|
||||||
sumneko-lua-language-server
|
lua-language-server
|
||||||
rnix-lsp
|
rnix-lsp
|
||||||
terraform-ls
|
terraform-ls
|
||||||
tflint
|
tflint
|
||||||
|
|
|
@ -50,10 +50,10 @@ lsp_status.register_progress()
|
||||||
|
|
||||||
-- setup lua language server for init.nvim and nvim plugin development
|
-- setup lua language server for init.nvim and nvim plugin development
|
||||||
require("neodev").setup({
|
require("neodev").setup({
|
||||||
override = function(root_dir, library)
|
override = function(root_dir, options)
|
||||||
if require("neodev.util").has_file(root_dir, "/etc/nixos") then
|
if require("neodev.util").has_file(root_dir, "/etc/nixos") then
|
||||||
library.enabled = true
|
options.enabled = true
|
||||||
library.plugins = true
|
options.plugins = true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -63,6 +63,7 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities(lsp_status.cap
|
||||||
local servers = {
|
local servers = {
|
||||||
["bashls"] = {},
|
["bashls"] = {},
|
||||||
["dockerls"] = {},
|
["dockerls"] = {},
|
||||||
|
["lua_ls"] = {},
|
||||||
["pylsp"] = {
|
["pylsp"] = {
|
||||||
pylsp = {
|
pylsp = {
|
||||||
plugins = {
|
plugins = {
|
||||||
|
@ -74,7 +75,6 @@ local servers = {
|
||||||
},
|
},
|
||||||
["pyright"] = {},
|
["pyright"] = {},
|
||||||
["rnix"] = {},
|
["rnix"] = {},
|
||||||
["sumneko_lua"] = {},
|
|
||||||
["terraformls"] = {},
|
["terraformls"] = {},
|
||||||
["tflint"] = {},
|
["tflint"] = {},
|
||||||
["tsserver"] = {},
|
["tsserver"] = {},
|
||||||
|
|
Loading…
Reference in New Issue