From 82d6a7d08591dc24e5c39036f57171b20633a656 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Thu, 23 Feb 2023 09:39:03 +0100 Subject: fix: was updating the wrong table --- lua/alpha/lsp/mason.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/alpha/lsp/mason.lua b/lua/alpha/lsp/mason.lua index 5ad4b77..e164562 100644 --- a/lua/alpha/lsp/mason.lua +++ b/lua/alpha/lsp/mason.lua @@ -8,10 +8,10 @@ mason.setup() local mason_servers = {} -- TODO: can be improve checking the setup function to see if sets the cmd -for server, value in pairs(servers) do +for server, _ in pairs(servers) do local cmd = lspconfig[server].document_config.default_config.cmd[1] if vim.fn.executable(cmd) == 0 then - table.insert(mason, server) + table.insert(mason_servers, server) end end -- cgit v1.2.3