summaryrefslogtreecommitdiff
path: root/lua/telescope/command.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-18 14:46:10 +0800
committerGitHub <noreply@github.com>2022-01-18 07:46:10 +0100
commit76c23d73751ab24126c7b486c6b1ff8e79540dbf (patch)
treedb59b2311bf945e7b3bc62ed852eeeef83984726 /lua/telescope/command.lua
parent1ec682b29d49aeb7843d7eb58b1e45d84aac045f (diff)
feat: show a message for unknown command (#1698)
Diffstat (limited to 'lua/telescope/command.lua')
-rw-r--r--lua/telescope/command.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/telescope/command.lua b/lua/telescope/command.lua
index f75fdeb..38c7ff7 100644
--- a/lua/telescope/command.lua
+++ b/lua/telescope/command.lua
@@ -182,7 +182,10 @@ local function run_command(args)
if rawget(extensions, cmd) then
extensions[cmd][cmd](opts)
+ return
end
+
+ print "[Telescope] unknown command"
end
-- @Summary get extensions sub command