summaryrefslogtreecommitdiff
path: root/lua/telescope/command.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-09-13 22:03:41 +0200
committerSimon Hauser <Simon-Hauser@outlook.de>2021-09-16 11:12:12 +0200
commit5131df7df17d640191201ddb462e863022d7a61b (patch)
treeb5eeb8435cf1d5e76e36808bfe2ef7887342191b /lua/telescope/command.lua
parentaaffa84ebb0d411eafe2347e2ee0424af1199219 (diff)
docs: rewrite readme and add missing config values + builtin opts
Diffstat (limited to 'lua/telescope/command.lua')
-rw-r--r--lua/telescope/command.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/command.lua b/lua/telescope/command.lua
index db75eb1..f75fdeb 100644
--- a/lua/telescope/command.lua
+++ b/lua/telescope/command.lua
@@ -166,7 +166,8 @@ local function run_command(args)
end
if string.len(theme) > 0 then
- opts = themes[theme](opts)
+ local func = themes[theme] or themes["get_" .. theme]
+ opts = func(opts)
end
if string.len(extension_type) > 0 and extension_type ~= '"' then