Browse Source

fix(lsp): pass name arg to should_auto_install (#2958)

Daniel Rodríguez Rivero 2 years ago
parent
commit
537a192179
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lua/lvim/lsp/manager.lua

+ 2 - 2
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