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 --- tests/indent/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/indent/common.lua b/tests/indent/common.lua index f33a5908b..6add58c7f 100644 --- a/tests/indent/common.lua +++ b/tests/indent/common.lua @@ -183,7 +183,7 @@ function Runner:whole_file(dirs, opts) assert.is.same(1, vim.fn.isdirectory(dir.filename)) return dir.filename end, dirs) - local files = require('nvim-treesitter.compat').flatten(vim.tbl_map(scan_dir, dirs)) + local files = vim.iter(vim.tbl_map(scan_dir, dirs)):flatten():totable() for _, file in ipairs(files) do local relpath = Path:new(file):make_relative(self.base_dir.filename) self.it(relpath, function() -- cgit v1.2.3-70-g09d2