aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer.lua')
-rw-r--r--lua/nvim-lsp-installer.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/nvim-lsp-installer.lua b/lua/nvim-lsp-installer.lua
index f41dbbf7..631f66a2 100644
--- a/lua/nvim-lsp-installer.lua
+++ b/lua/nvim-lsp-installer.lua
@@ -37,9 +37,12 @@ function M.setup(config)
end
settings.uses_new_setup = true
require("nvim-lsp-installer.middleware").register_lspconfig_hook()
- vim.schedule(function()
- ensure_installed(settings.current.ensure_installed)
- end)
+
+ if vim.tbl_islist(settings.current.ensure_installed) then
+ vim.schedule(function()
+ ensure_installed(settings.current.ensure_installed)
+ end)
+ end
end
M.info_window = {