From f4baa984769f8d3c17a3f8cbdc80b3bfaeb2ec34 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Mon, 29 Apr 2024 14:02:27 -0500 Subject: [PATCH] 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 --- nvim/lua/plugins/mason.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/nvim/lua/plugins/mason.lua b/nvim/lua/plugins/mason.lua index 05624ee..3553707 100644 --- a/nvim/lua/plugins/mason.lua +++ b/nvim/lua/plugins/mason.lua @@ -40,6 +40,21 @@ return { mason_lspconfig.setup { 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') @@ -103,6 +118,21 @@ return { } } 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, dependencies = {