update lsp config for nvim
This commit is contained in:
@@ -168,20 +168,12 @@ return {
|
|||||||
-- - settings (table): Override the default settings passed when initializing the server.
|
-- - settings (table): Override the default settings passed when initializing the server.
|
||||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||||
local servers = {
|
local servers = {
|
||||||
lua_ls = {
|
lua_ls = { settings = { Lua = { completion = { callSnippet = 'Replace' } } } },
|
||||||
settings = {
|
|
||||||
Lua = {
|
|
||||||
completion = {
|
|
||||||
callSnippet = 'Replace',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
gopls = {},
|
gopls = {},
|
||||||
pylsp = {},
|
ruff = { cmd = { '/run/current-system/sw/bin/ruff', 'server' } },
|
||||||
}
|
}
|
||||||
|
|
||||||
local servers_skip_mason = { lua_ls = true, gopls = true }
|
local servers_skip_mason = { lua_ls = true, gopls = true, ruff = true }
|
||||||
local ensure_installed = vim.tbl_filter(function(name)
|
local ensure_installed = vim.tbl_filter(function(name)
|
||||||
return not servers_skip_mason[name]
|
return not servers_skip_mason[name]
|
||||||
end, vim.tbl_keys(servers or {}))
|
end, vim.tbl_keys(servers or {}))
|
||||||
|
|||||||
Reference in New Issue
Block a user