diff --git a/lua/lazy/view/commands.lua b/lua/lazy/view/commands.lua index 9d02a3b..7a026c4 100644 --- a/lua/lazy/view/commands.lua +++ b/lua/lazy/view/commands.lua @@ -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[]