瀏覽代碼

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

Daniel Rodríguez Rivero 2 年之前
父節點
當前提交
537a192179
共有 1 個文件被更改,包括 2 次插入2 次删除
  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