From acd6697d8810e501d3861bba2ac45d5f4555c43a Mon Sep 17 00:00:00 2001 From: tzachar Date: Wed, 28 Dec 2022 18:39:31 +0200 Subject: [PATCH] fix(commands): E5108 in getcompletions (#207) --- lua/lazy/view/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[]