added more server configurations in lspconfig

This commit is contained in:
krolyxon 2023-01-09 12:47:21 +05:30
parent 2ab78b05c3
commit ee208f7e8d
2 changed files with 14 additions and 10 deletions

View File

@ -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

View File

@ -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",