mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 04:04:24 -05:00
Refactoring
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user