aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index cf99a01d7..de44ffa1c 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -110,9 +110,13 @@ function M.select_compiler_args(repo, compiler)
"parser.so",
"-I./src",
repo.files,
- "-shared",
"-Os",
}
+ if fn.has "mac" == 1 then
+ table.insert(args, "-bundle")
+ else
+ table.insert(args, "-shared")
+ end
if
#vim.tbl_filter(function(file) ---@param file string
local ext = vim.fn.fnamemodify(file, ":e")