vim/telescope: reformat
This commit is contained in:
parent
1e372c559b
commit
2e4ffba0de
1 changed files with 11 additions and 38 deletions
|
@ -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 = {
|
|
||||||
preview_width = 0.5,
|
|
||||||
preview_cutoff = 130,
|
|
||||||
},
|
|
||||||
|
|
||||||
vertical = {
|
|
||||||
preview_height = 0.5,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
cycle_layout_list = {
|
cycle_layout_list = { 'horizontal', 'vertical' },
|
||||||
'horizontal',
|
|
||||||
'vertical',
|
|
||||||
},
|
|
||||||
|
|
||||||
mappings = {
|
mappings = { i = mappings, n = 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
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue