Skip to content

Commit

Permalink
fix: check if version is 0.11 instead of 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobfonseca committed May 21, 2024
1 parent ff907d0 commit 53f36de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/null-ls/utils/tbl_flatten.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local M = {}

function M.tbl_flatten(t)
return vim.fn.has("nvim-0.10") == 1 and vim.iter(t):flatten(math.huge):totable() or vim.tbl_flatten(t)
return vim.fn.has("nvim-0.11") == 1 and vim.iter(t):flatten(math.huge):totable() or vim.tbl_flatten(t)
end

return M

0 comments on commit 53f36de

Please sign in to comment.