Skip to content

Commit acd6697

Browse files
authored
fix(commands): E5108 in getcompletions (#207)
1 parent 0b1e083 commit acd6697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/view/commands.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ M.commands = {
5656
}
5757

5858
function M.complete(cmd, prefix)
59-
if not ViewConfig.commands[cmd].plugins then
59+
if not (ViewConfig.commands[cmd] or {}).plugins then
6060
return
6161
end
6262
---@type string[]

0 commit comments

Comments
 (0)