Update nvim config to 0.11.1 standards.
This commit is contained in:
parent
fe23a8c0df
commit
ae1489527c
16 changed files with 45 additions and 88 deletions
10
nvim/lsp/zls.lua
Normal file
10
nvim/lsp/zls.lua
Normal 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"},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue