doc: document new telescope config options

This commit is contained in:
Steven Arcangeli 2022-02-28 16:37:34 -08:00
parent 5e00319c98
commit b6f5a92ef4
4 changed files with 7 additions and 1 deletions

View File

@ -156,6 +156,8 @@ require('dressing').setup({
-- Options for telescope selector -- Options for telescope selector
telescope = { telescope = {
-- can be 'dropdown', 'cursor', or 'ivy' -- can be 'dropdown', 'cursor', or 'ivy'
-- or you can use a configuration directly:
-- theme = require('telescope.themes').get_ivy({...})
theme = "dropdown", theme = "dropdown",
}, },

View File

@ -46,6 +46,8 @@ Configure dressing.nvim by calling the setup() function.
-- Options for telescope selector -- Options for telescope selector
telescope = { telescope = {
-- can be 'dropdown', 'cursor', or 'ivy' -- can be 'dropdown', 'cursor', or 'ivy'
-- or you can use a configuration directly:
-- theme = require('telescope.themes').get_ivy({...})
theme = "dropdown", theme = "dropdown",
}, },

View File

@ -39,6 +39,8 @@ local default_config = {
-- Options for telescope selector -- Options for telescope selector
telescope = { telescope = {
-- can be 'dropdown', 'cursor', or 'ivy' -- can be 'dropdown', 'cursor', or 'ivy'
-- or you can use a configuration directly:
-- theme = require('telescope.themes').get_ivy({...})
theme = "dropdown", theme = "dropdown",
}, },

View File

@ -24,7 +24,7 @@ M.select = function(config, items, opts, on_choice)
end end
local picker_opts = type(config.theme) == "table" local picker_opts = type(config.theme) == "table"
and vim.tbl_extend("force", config.theme, defaults) and vim.tbl_extend("force", config.theme, defaults)
or themes[string.format("get_%s", config.theme)](defaults) or themes[string.format("get_%s", config.theme)](defaults)
pickers.new(picker_opts, { pickers.new(picker_opts, {