vim/telescope: enable dynamic title in preview
This commit is contained in:
parent
24ab75eb65
commit
9b07ea7d53
1 changed files with 20 additions and 3 deletions
|
@ -18,11 +18,31 @@ local config = function()
|
||||||
|
|
||||||
telescope.setup {
|
telescope.setup {
|
||||||
defaults = {
|
defaults = {
|
||||||
|
-- ╭────────╮
|
||||||
|
-- │ Keymap │
|
||||||
|
-- ╰────────╯
|
||||||
|
mappings = { i = mappings, n = mappings },
|
||||||
|
|
||||||
|
-- ╭────────╮
|
||||||
|
-- │ Prompt │
|
||||||
|
-- ╰────────╯
|
||||||
prompt_prefix = ' ❯ ',
|
prompt_prefix = ' ❯ ',
|
||||||
selection_caret = ' ', -- Other ideas: ➔
|
selection_caret = ' ', -- Other ideas: ➔
|
||||||
|
|
||||||
|
-- ╭─────────╮
|
||||||
|
-- │ Results │
|
||||||
|
-- ╰─────────╯
|
||||||
multi_icon = ' ',
|
multi_icon = ' ',
|
||||||
scroll_strategy = 'limit', -- Don't wrap around in results.
|
scroll_strategy = 'limit', -- Don't wrap around in results.
|
||||||
|
|
||||||
|
-- ╭─────────╮
|
||||||
|
-- │ Preview │
|
||||||
|
-- ╰─────────╯
|
||||||
|
dynamic_preview_title = true,
|
||||||
|
|
||||||
|
-- ╭────────╮
|
||||||
|
-- │ Layout │
|
||||||
|
-- ╰────────╯
|
||||||
layout_strategy = 'flex',
|
layout_strategy = 'flex',
|
||||||
layout_config = {
|
layout_config = {
|
||||||
anchor = 'center',
|
anchor = 'center',
|
||||||
|
@ -32,10 +52,7 @@ local config = function()
|
||||||
horizontal = { preview_width = 0.5, preview_cutoff = 130 },
|
horizontal = { preview_width = 0.5, preview_cutoff = 130 },
|
||||||
vertical = { preview_height = 0.5 },
|
vertical = { preview_height = 0.5 },
|
||||||
},
|
},
|
||||||
|
|
||||||
cycle_layout_list = { 'horizontal', 'vertical' },
|
cycle_layout_list = { 'horizontal', 'vertical' },
|
||||||
|
|
||||||
mappings = { i = mappings, n = mappings },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
extensions = {
|
extensions = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue