.dotfiles/nvim/lsp/zls.lua
2025-04-10 10:17:10 +02:00

10 lines
340 B
Lua

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"},
}