Skip to content

Commit d57bea4

Browse files
committed
fix(nvim): make sure prompts returns string[]
1 parent ff1c826 commit d57bea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/vectorcode/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ M.prompts = vc_config.check_cli_wrap(function(item)
221221
end
222222
return {}
223223
end
224-
return result
224+
return vim.iter(result):flatten(math.huge):totable()
225225
end)
226226

227227
M.setup = vc_config.setup

0 commit comments

Comments
 (0)