Skip to content

Commit

Permalink
fix(commands): E5108 in getcompletions (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzachar committed Dec 28, 2022
1 parent 0b1e083 commit acd6697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/view/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ M.commands = {
}

function M.complete(cmd, prefix)
if not ViewConfig.commands[cmd].plugins then
if not (ViewConfig.commands[cmd] or {}).plugins then
return
end
---@type string[]
Expand Down

0 comments on commit acd6697

Please sign in to comment.