From 02eb25608d40134444c67a6ededbf247972a606c Mon Sep 17 00:00:00 2001 From: rcarriga Date: Sun, 9 Jun 2024 17:37:16 +0100 Subject: [PATCH] fix(utils): use nio.fn See #410 --- lua/neotest/utils/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/neotest/utils/init.lua b/lua/neotest/utils/init.lua index 0423418..95ed42a 100644 --- a/lua/neotest/utils/init.lua +++ b/lua/neotest/utils/init.lua @@ -1,7 +1,9 @@ +local nio = require("nio") + local M = {} function M.tbl_flatten(t) - return vim.fn.has("nvim-0.11") == 1 and vim.iter(t):flatten(math.huge):totable() + return nio.fn.has("nvim-0.11") == 1 and vim.iter(t):flatten(math.huge):totable() or vim.tbl_flatten(t) end