Nix hm #1

Merged
LarssonMartin1998 merged 106 commits from nix-hm into main 2025-02-25 14:13:05 +00:00
2 changed files with 25 additions and 0 deletions
Showing only changes of commit beb700f3fe - Show all commits

View file

@ -0,0 +1,15 @@
return {
cmd = { "nil" },
filetypes = { "nix" },
root_markers = {
"flake.nix",
".git"
},
settings = {
["nil"] = {
formatting = {
command = { "nixfmt" },
},
},
},
}

View file

@ -0,0 +1,10 @@
return {
cmd = { "zls" },
on_new_config = function(new_config, new_root_dir)
if vim.fn.filereadable(vim.fs.joinpath(new_root_dir, "zls.json")) ~= 0 then
new_config.cmd = { "zls", "--config-path", "zls.json" }
end
end,
filetypes = { "zig", "zir" },
root_markers = {"zls.json", "build.zig", ".git"},
}