From 5178c52be1f84b420307156e8bcaed1b0439199a Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Sat, 14 Sep 2024 05:18:53 -0300 Subject: [PATCH] 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. --- lua/lazyvim/plugins/extras/lang/zig.lua | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/zig.lua 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"] = {}, + }, + }, + }, +}