diff options
author | Daniel RodrÃguez Rivero <[email protected]> | 2022-08-29 14:04:46 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-08-29 14:04:46 +0200 |
commit | 537a192179c1123618489b2faaf58204d899f3a1 (patch) | |
tree | 44bfa03c6a3ade87059fa5447736b9fc6495667c /lua/lvim/lsp/manager.lua | |
parent | 9fcb6bbd8116caa498433f6ecb47e7acccfd0dcd (diff) |
fix(lsp): pass name arg to should_auto_install (#2958)
Diffstat (limited to 'lua/lvim/lsp/manager.lua')
-rw-r--r-- | lua/lvim/lsp/manager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lvim/lsp/manager.lua b/lua/lvim/lsp/manager.lua index 258a4983..1323ace7 100644 --- a/lua/lvim/lsp/manager.lua +++ b/lua/lvim/lsp/manager.lua @@ -98,10 +98,10 @@ function M.setup(server_name, user_config) return end - local should_auto_install = function() + local should_auto_install = function(name) local installer_settings = lvim.lsp.installer.setup return installer_settings.automatic_installation - and not vim.tbl_contains(installer_settings.automatic_installation.exclude, server_name) + and not vim.tbl_contains(installer_settings.automatic_installation.exclude, name) end if not registry.is_installed(pkg_name) then |