Skip to content

Commit 236b1f3

Browse files
cameronrsudo-tee
authored andcommitted
chore(api): fix completion type
1 parent 48d46f4 commit 236b1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ function M.complete_command(arg_lead, cmd_line, cursor_pos)
11741174
if num_parts <= 3 and subcmd_def.completions then
11751175
local completions = subcmd_def.completions
11761176
if type(completions) == 'function' then
1177-
completions = completions()
1177+
completions = completions() --[[@as string[] ]]
11781178
end
11791179
return vim.tbl_filter(function(opt)
11801180
return vim.startswith(opt, arg_lead)

0 commit comments

Comments
 (0)