try different telescope layout

This commit is contained in:
Vladan Popovic 2024-02-25 22:45:46 +01:00
parent 1b268b2e77
commit e70253835c
1 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,16 @@ local builtin = require('telescope.builtin')
telescope.setup { telescope.setup {
defaults = { defaults = {
layout_strategy = "vertical",
layout_config = {
vertical = {
prompt_position = "top",
},
horizontal = {
prompt_position = "bottom",
},
},
sorting_strategy = "ascending",
live_grep_arguments = { 'rg', live_grep_arguments = { 'rg',
'--hidden', '--no-ignore', '--color=never', '--hidden', '--no-ignore', '--color=never',
'--with-filename', '--line-number', '--with-filename', '--line-number',
@ -12,10 +22,14 @@ telescope.setup {
}, },
pickers = { pickers = {
live_grep = { live_grep = {
layout_strategy = "horizontal",
mappings = { mappings = {
i = { ["<c-f>"] = actions.to_fuzzy_refine }, i = { ["<c-f>"] = actions.to_fuzzy_refine },
}, },
}, },
find_files = {
previewer = false,
},
}, },
} }