Skip to content

Commit

Permalink
fix(utils): use nio.fn
Browse files Browse the repository at this point in the history
See #410
  • Loading branch information
rcarriga committed Jun 9, 2024
1 parent a196f69 commit 02eb256
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/neotest/utils/init.lua
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 02eb256

Please sign in to comment.