fix: provide list of servers to ensure_installed again

pull/74/head
nedia 3 years ago
parent b4173c7a4e
commit a59b0c7a1c

@ -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 {

Loading…
Cancel
Save