From a59b0c7a1cb0e3ec9b2d2728ac1ff1a77c27a15f Mon Sep 17 00:00:00 2001 From: nedia Date: Wed, 21 Dec 2022 12:43:56 +1300 Subject: [PATCH] fix: provide list of servers to ensure_installed again --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index c466473e..a2e21be7 100644 --- a/init.lua +++ b/init.lua @@ -340,11 +340,12 @@ local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) -- Configure language servers --- Automatically install language servers -- Set up a default handler for language servers, and a custom one as an example local mason_lspconfig = require 'mason-lspconfig' mason_lspconfig.setup { - automatic_installation = true, + -- Enable the following language servers + -- Feel free to add/remove any LSPs that you want here. They will automatically be installed + ensure_installed = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua', 'gopls' }, } mason_lspconfig.setup_handlers {