diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-02-23 09:39:03 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-02-23 09:39:03 +0100 |
| commit | 82d6a7d08591dc24e5c39036f57171b20633a656 (patch) | |
| tree | db03bf2c192057f34df83c4909caf646b0293343 /lua | |
| parent | 914ba277c332532fac161f9f3e5a00bc250590e6 (diff) | |
| download | nvim-conf-82d6a7d08591dc24e5c39036f57171b20633a656.tar.gz nvim-conf-82d6a7d08591dc24e5c39036f57171b20633a656.zip | |
fix: was updating the wrong table
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/lsp/mason.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |