From 3d268f9db4e3b1bf8ba1de792407fe89ed1274db Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 17 May 2024 09:39:19 +0200 Subject: fix: adapt to Nvim 0.11 deprecations --- 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 1ddd91a40..6cfedafff 100644 --- a/tests/indent/common.lua +++ b/tests/indent/common.lua @@ -180,7 +180,7 @@ function Runner:whole_file(dirs, opts) assert.is.same(1, vim.fn.isdirectory(dir.filename)) return dir.filename end, dirs) - local files = vim.tbl_flatten(vim.tbl_map(scan_dir, dirs)) + local files = require("nvim-treesitter.compat").flatten(vim.tbl_map(scan_dir, dirs)) 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