From cd4dac02a3bb5431979b0812a80dadf6ee088f5e Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 30 Apr 2022 15:44:37 +0200 Subject: feat: allow excluding servers from automatic installation (#643) --- lua/nvim-lsp-installer/settings.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua/nvim-lsp-installer/settings.lua') diff --git a/lua/nvim-lsp-installer/settings.lua b/lua/nvim-lsp-installer/settings.lua index 44c739db..5cfdae4f 100644 --- a/lua/nvim-lsp-installer/settings.lua +++ b/lua/nvim-lsp-installer/settings.lua @@ -7,6 +7,11 @@ local DEFAULT_SETTINGS = { -- A list of servers to automatically install. Example: { "rust_analyzer", "sumneko_lua" } ensure_installed = {}, -- Whether servers that are set up (via lspconfig) should be automatically installed if they're not already installed. + -- Can either be: + -- - false: Servers are not automatically installed. + -- - true: All servers set up via lspconfig are automatically installed. + -- - { exclude: string[] }: All servers set up via lspconfig, except the ones provided in the list, are automatically installed. + -- Example: automatic_installation = { exclude = { "rust_analyzer", "solargraph" } } automatic_installation = false, ui = { icons = { -- cgit v1.2.3-70-g09d2