blob: d2013a4ade0d324c5ace2cc98b6769d4a0e5a28d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
return {
cmd = { "zls" },
filetypes = { "zig", "zir" },
on_new_config = function(new, old)
if vim.fn.filereadable(vim.fs.joinpath(new_root_dir, "zls.json")) ~= 0 then
new.cmd = { "zls", "--config-path", "zls.json" }
end
end,
root_markers = { "zls.json", "build.zig", ".git" },
single_file_support = true,
}
|