vim/telescope: reformat

This commit is contained in:
Fernando Schauenburg 2023-07-16 13:25:23 +02:00
parent 1e372c559b
commit 2e4ffba0de

View file

@ -19,54 +19,27 @@ local config = function()
telescope.setup { telescope.setup {
defaults = { defaults = {
prompt_prefix = ' ', prompt_prefix = ' ',
selection_caret = '', -- Other ideas: ➔ selection_caret = '', -- Other ideas:  ➔
multi_icon = '', multi_icon = '',
scroll_strategy = 'limit', -- Don't wrap around in results.
scroll_strategy = 'limit',
layout_strategy = 'flex', layout_strategy = 'flex',
layout_config = { layout_config = {
anchor = 'center', anchor = 'center',
width = 0.9, width = 0.9,
height = 0.9, height = 0.9,
flex = { flip_columns = 130 },
flex = { horizontal = { preview_width = 0.5, preview_cutoff = 130 },
flip_columns = 130, vertical = { preview_height = 0.5 },
}, },
horizontal = { cycle_layout_list = { 'horizontal', 'vertical' },
preview_width = 0.5,
preview_cutoff = 130,
},
vertical = { mappings = { i = mappings, n = mappings },
preview_height = 0.5,
},
},
cycle_layout_list = {
'horizontal',
'vertical',
},
mappings = {
i = mappings,
n = mappings,
},
}, },
extensions = { extensions = {
file_browser = { file_browser = { theme = 'ivy' },
theme = 'ivy',
mappings = {
n = {
-- normal mode mappings go here
},
i = {
-- insert mode mappings go here
},
},
},
}, },
} }