Closed i3d closed 1 month ago
getting the same error as well
I guess it could be ipairs
issues:
for ipairs
table, the first item can't be nil
local funcs = { nil, 'a', 'b', 'c' }
vim.print(funcs)
-- { [2] = "a", [3] = "b", [4] = "c" }
-- nothing for print
for i, v in ipairs({ [2] = 'a', [3] = 'b', [4] = 'd' }) do print(i, v) end
-- 1 a 2 b
for i,v in ipairs({[1]='a', [2]='b', [4]='d'}) do print(i,v) end
ipairs(foo)
need to check foo is not nil
for _, f in ipairs(funcs) do
Thank you @flczcy That was the exact issue.
This is what I get from calling the
code_action
function.The configuration I used is exactly the same as the example.