doc: document new telescope config options
This commit is contained in:
parent
5e00319c98
commit
b6f5a92ef4
|
@ -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",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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, {
|
||||||
|
|
Loading…
Reference in New Issue