feat: adding the ensure_installed list for Mason to auto-install LSPs

and manually adding the gdscript LSP manually as there are some oddities
when trying to add it through Mason
This commit is contained in:
Finch 2024-04-29 14:02:27 -05:00
parent 02ba4ea6e6
commit f4baa98476

View File

@ -40,6 +40,21 @@ return {
mason_lspconfig.setup { mason_lspconfig.setup {
automatic_installation = true, automatic_installation = true,
ensure_installed = {
'ansiblels',
'clangd',
'emmet_ls',
'gopls',
'intelephense',
'jdtls',
'lua_ls',
'marksman',
'pylsp',
'rust_analyzer',
'tsserver',
'yamlls',
'volar',
}
} }
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
@ -103,6 +118,21 @@ return {
} }
} }
end, end,
lspconfig.gdscript.setup {
capabilities = capabilities,
on_attach = on_attach,
flags = {
debounce_text_changes = 100,
}
}
-- ['gdshader_lsp'] = function()
-- lspconfig.gdshader_lsp.setup {
-- capabilities = capabilities,
-- on_attach = on_attach,
-- }
-- end,
} }
end, end,
dependencies = { dependencies = {