summaryrefslogtreecommitdiff
path: root/lua/telescope/command.lua
diff options
context:
space:
mode:
authorRaphael <glepnir@gopherhub.org>2021-01-08 11:00:45 +0800
committerGitHub <noreply@github.com>2021-01-08 06:00:45 +0300
commit77d6a74d1ea3d272e6e898860a71a61b184540ff (patch)
treeaf520d29476d9cd78d85f9ed93111a0217ffabe4 /lua/telescope/command.lua
parenta089c674837ee1216748b1af6726798cec458371 (diff)
fix: custom extensions opts for commands (#404)
Diffstat (limited to 'lua/telescope/command.lua')
-rw-r--r--lua/telescope/command.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/lua/telescope/command.lua b/lua/telescope/command.lua
index 80476d1..da67c8b 100644
--- a/lua/telescope/command.lua
+++ b/lua/telescope/command.lua
@@ -41,11 +41,9 @@ local function convert_user_opts(user_opts)
setmetatable(_switch,_switch_metatable)
for key,val in pairs(user_opts) do
- if default_opts[key] == nil then
- print('[Telescope] argument not exists in default options')
- return
+ if default_opts[key] ~= nil then
+ _switch[type(default_opts[key])](key,val)
end
- _switch[type(default_opts[key])](key,val)
end
end