From 054080bf5986b39128cc64fba6ab144e961d4e2d Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 22 Apr 2024 19:27:12 +0200 Subject: fix: vim.tbl_flatten is deprecated --- lua/nvim-treesitter/install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') 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') -- cgit v1.2.3-70-g09d2