Refactoring

This commit is contained in:
2025-08-31 14:56:56 +02:00
parent 7f7608bd46
commit 8db10741fe
8 changed files with 55 additions and 36 deletions

View File

View File

@@ -63,7 +63,7 @@ function M.get_lsp_servers()
if vim.fn.executable("nix") == 1 then
table.insert(servers, "nil_ls")
else
warn_once("nix", "[mason] Skipping nil_ls (nix not found)")
warn_once("nix", "[mason] Skipping nil_ls and nixfmt (nix not found)")
end
table.insert(servers, "rust_analyzer")
else
@@ -75,6 +75,11 @@ function M.get_lsp_servers()
else
warn_once("deno", "[mason] Skipping denols (deno not found)")
end
-- Only configure zig when in local environment
if vim.fn.executable("zls") == 1 then
table.insert(servers, "zls")
end
end
populate_servers()