Skip to content

Commit

Permalink
feat: add support for more telescope themes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Dec 3, 2021
1 parent 5024cb8 commit edbae09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lua/dressing/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion lua/dressing/select/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit edbae09

Please sign in to comment.