From cee25503cd6df85366c5106c40cc5240634e647e Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 18 Oct 2021 13:59:43 +0200 Subject: speed up :LspInstall, :LspUninstall, :LspUninstallAll commands (#175) - `:LspUninstallAll` now just nukes the entire install directory immediately, instead of uninstalling each server one by one. There's also a confirmation prompt now. - `:LspInstall` & `:LspUninstall` now sources its autocompletion directly from a Lua table, instead of sourcing the server names from each server module (thus avoiding unnecessary `require` calls). --- lua/nvim-lsp-installer/settings.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 1d999573..f10b9e28 100644 --- a/lua/nvim-lsp-installer/settings.lua +++ b/lua/nvim-lsp-installer/settings.lua @@ -1,6 +1,8 @@ local path = require "nvim-lsp-installer.path" -local DEFAULT_SETTINGS = { +local M = {} + +M._DEFAULT_SETTINGS = { ui = { icons = { -- The list icon to use for installed servers. @@ -48,9 +50,7 @@ local DEFAULT_SETTINGS = { max_concurrent_installers = 4, } -local M = {} - -M.current = DEFAULT_SETTINGS +M.current = M._DEFAULT_SETTINGS function M.set(opts) M.current = vim.tbl_deep_extend("force", M.current, opts) -- cgit v1.2.3-70-g09d2