summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/shell_command_selectors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-treesitter/shell_command_selectors.lua')
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 7acd91d2..ee784312 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -65,6 +65,17 @@ function M.select_compiler_args(repo, compiler)
"-Os",
"/LD",
}
+ elseif string.match(compiler, "zig$") or string.match(compiler, "zig.exe$") then
+ return {
+ "c++",
+ "-o",
+ "parser.so",
+ repo.files,
+ "-lc",
+ "-Isrc",
+ "-shared",
+ "-Os",
+ }
else
local args = {
"-o",