diff --git a/lua/dressing/config.lua b/lua/dressing/config.lua index a06da5b..d153211 100644 --- a/lua/dressing/config.lua +++ b/lua/dressing/config.lua @@ -23,7 +23,10 @@ local default_config = { backend = { "telescope", "fzf", "builtin", "nui" }, -- Options for telescope selector - telescope = {}, + telescope = { + -- can be 'dropdown', 'cursor', or 'ivy' + theme = "dropdown", + }, -- Options for fzf selector fzf = { diff --git a/lua/dressing/select/telescope.lua b/lua/dressing/select/telescope.lua index a30a04e..79da149 100644 --- a/lua/dressing/select/telescope.lua +++ b/lua/dressing/select/telescope.lua @@ -21,7 +21,7 @@ M.select = function(config, items, opts, on_choice) } end - local picker_opts = themes.get_dropdown({ + local picker_opts = themes[string.format("get_%s", config.theme)]({ previewer = false, }) pickers.new(picker_opts, {