mirror of
https://github.com/mqttr/dotfiles.git
synced 2025-12-16 12:45:52 -06:00
Change lsp configs
This commit is contained in:
@@ -14,35 +14,25 @@ return {
|
||||
"b0o/schemastore.nvim",
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
ensure_installed = {
|
||||
"rust_analyzer",
|
||||
"clangd",
|
||||
"basedpyright",
|
||||
"lua_ls",
|
||||
'bashls',
|
||||
'yamlls',
|
||||
'gopls',
|
||||
'html',
|
||||
'cssls',
|
||||
}
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
config = function ()
|
||||
require('mason-lspconfig').setup({
|
||||
ensure_installed = servers
|
||||
})
|
||||
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities
|
||||
}
|
||||
end
|
||||
end,
|
||||
|
||||
automatic_installation = true,
|
||||
ensure_installed = servers
|
||||
},
|
||||
-- {
|
||||
-- "williamboman/mason-lspconfig.nvim",
|
||||
-- config = function ()
|
||||
-- require('mason-lspconfig').setup({
|
||||
-- ensure_installed = servers
|
||||
-- })
|
||||
--
|
||||
-- for _, lsp in pairs(servers) do
|
||||
-- require('lspconfig')[lsp].setup {
|
||||
-- on_attach = on_attach,
|
||||
-- capabilities = capabilities
|
||||
-- }
|
||||
-- end
|
||||
-- end,
|
||||
--
|
||||
-- automatic_installation = true,
|
||||
-- },
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
|
||||
Reference in New Issue
Block a user