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