feat(extras): lang/zig

A fresh and minimalist take on #1750.
It only adds what is maintainable (has activity in the past year at
least).
Superseds #1750.
This commit is contained in:
Jose Storopoli 2024-09-14 05:18:53 -03:00
parent a1c3ec4cd4
commit 5178c52be1
No known key found for this signature in database
GPG key ID: 29E00111DE172C28

View file

@ -0,0 +1,32 @@
return {
recommended = function()
return LazyVim.extras.wants({
ft = { "zig", "zir" },
root = { "zls.json", "build.zig" },
})
end,
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "zig" } },
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
zls = {},
},
},
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"lawrence-laz/neotest-zig",
},
opts = {
adapters = {
["neotest-zig"] = {},
},
},
},
}