added more server configurations in lspconfig
This commit is contained in:
parent
2ab78b05c3
commit
ee208f7e8d
|
|
@ -130,14 +130,18 @@ lspconfig.sumneko_lua.setup {
|
|||
-- }
|
||||
-- }
|
||||
|
||||
-- local servers = {
|
||||
-- }
|
||||
--
|
||||
-- for _, lsp in ipairs(servers) do
|
||||
-- lspconfig[lsp].setup {
|
||||
-- on_attach = M.on_attach,
|
||||
-- capabilities = M.capabilities,
|
||||
-- }
|
||||
-- end
|
||||
local servers = {
|
||||
"marksman",
|
||||
"taplo",
|
||||
"pylsp",
|
||||
"clangd",
|
||||
}
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
on_attach = M.on_attach,
|
||||
capabilities = M.capabilities,
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ if not present then
|
|||
end
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim
|
||||
ensure_installed = { "lua-language-server", "rust_analyzer" }, -- not an option from mason.nvim
|
||||
|
||||
PATH = "skip",
|
||||
|
||||
|
|
|
|||
Reference in New Issue