aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index c501b0fa0..6918a1820 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -386,7 +386,7 @@ end
---@param compile_location string
---@return string? err
local function do_compile(logger, repo, cc, compile_location)
- local args = vim.tbl_flatten(select_compiler_args(repo, cc))
+ local args = vim.iter(select_compiler_args(repo, cc)):flatten():totable()
local cmd = vim.list_extend({ cc }, args)
logger:info('Compiling parser')