From 537a192179c1123618489b2faaf58204d899f3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Rodr=C3=ADguez=20Rivero?= Date: Mon, 29 Aug 2022 14:04:46 +0200 Subject: fix(lsp): pass name arg to should_auto_install (#2958) --- lua/lvim/lsp/manager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/lvim/lsp/manager.lua') 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 -- cgit v1.2.3