fix: provide list of servers to ensure_installed again

This commit is contained in:
nedia 2022-12-21 12:43:56 +13:00
parent b4173c7a4e
commit a59b0c7a1c
1 changed files with 3 additions and 2 deletions

View File

@ -340,11 +340,12 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
-- Configure language servers -- Configure language servers
-- Automatically install language servers
-- Set up a default handler for language servers, and a custom one as an example -- Set up a default handler for language servers, and a custom one as an example
local mason_lspconfig = require 'mason-lspconfig' local mason_lspconfig = require 'mason-lspconfig'
mason_lspconfig.setup { 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 { mason_lspconfig.setup_handlers {