Update nvim config to 0.11.1 standards.

This commit is contained in:
Martin Lasson 2025-04-10 10:17:10 +02:00
parent fe23a8c0df
commit ae1489527c
16 changed files with 45 additions and 88 deletions

10
nvim/lsp/zls.lua Normal file
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"},
}