mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 03:50:03 +02:00
nvim: update telescope config
This commit is contained in:
parent
ae5e51873b
commit
3ec8a0508d
1 changed files with 9 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ return {
|
||||||
local actions = require("telescope.actions")
|
local actions = require("telescope.actions")
|
||||||
return {
|
return {
|
||||||
defaults = {
|
defaults = {
|
||||||
path_display = { truncate = 1 },
|
path_display = { "filename_first", truncate = 1 },
|
||||||
prompt_prefix = " ",
|
prompt_prefix = " ",
|
||||||
selection_caret = icons.current .. " ",
|
selection_caret = icons.current .. " ",
|
||||||
multi_icon = icons.selected .. " ",
|
multi_icon = icons.selected .. " ",
|
||||||
|
|
@ -25,6 +25,7 @@ return {
|
||||||
},
|
},
|
||||||
mappings = {
|
mappings = {
|
||||||
i = {
|
i = {
|
||||||
|
['<C-p>'] = require('telescope.actions.layout').cycle_layout_next,
|
||||||
["<esc>"] = actions.close,
|
["<esc>"] = actions.close,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -32,10 +33,17 @@ return {
|
||||||
preview = {
|
preview = {
|
||||||
filesize_limit = 0.1
|
filesize_limit = 0.1
|
||||||
},
|
},
|
||||||
|
layout_strategy = "vertical",
|
||||||
|
cycle_layout_list = { "horizontal", "vertical" },
|
||||||
layout_config = {
|
layout_config = {
|
||||||
|
vertical = {
|
||||||
|
width = 0.5,
|
||||||
|
height = 0.6,
|
||||||
|
},
|
||||||
horizontal = {
|
horizontal = {
|
||||||
width = 0.95,
|
width = 0.95,
|
||||||
height = 0.95,
|
height = 0.95,
|
||||||
|
preview_width = 0.5,
|
||||||
preview_cutoff = 200,
|
preview_cutoff = 200,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue