diff options
| author | William Boman <william@redwill.se> | 2021-10-18 13:59:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-18 13:59:43 +0200 |
| commit | cee25503cd6df85366c5106c40cc5240634e647e (patch) | |
| tree | 6e242bc0b0c5a6c3e40b165323a6c1a9c20576a1 /lua/nvim-lsp-installer/settings.lua | |
| parent | Remove the pdflatex check (#174) (diff) | |
| download | mason-cee25503cd6df85366c5106c40cc5240634e647e.tar mason-cee25503cd6df85366c5106c40cc5240634e647e.tar.gz mason-cee25503cd6df85366c5106c40cc5240634e647e.tar.bz2 mason-cee25503cd6df85366c5106c40cc5240634e647e.tar.lz mason-cee25503cd6df85366c5106c40cc5240634e647e.tar.xz mason-cee25503cd6df85366c5106c40cc5240634e647e.tar.zst mason-cee25503cd6df85366c5106c40cc5240634e647e.zip | |
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).
Diffstat (limited to 'lua/nvim-lsp-installer/settings.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/settings.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
