From 76c23d73751ab24126c7b486c6b1ff8e79540dbf Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 18 Jan 2022 14:46:10 +0800 Subject: [PATCH] feat: show a message for unknown command (#1698) --- lua/telescope/command.lua | 3 +++ 1 file changed, 3 insertions(+) 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