diff --git a/lua/lazyvim/plugins/extras/lang/zig.lua b/lua/lazyvim/plugins/extras/lang/zig.lua new file mode 100644 index 00000000..07499b11 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/zig.lua @@ -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"] = {}, + }, + }, + }, +}