Skip to content

Commit 5678c76

Browse files
committed
customize telescope layout configs
1 parent 967f081 commit 5678c76

1 file changed

Lines changed: 32 additions & 6 deletions

File tree

lua/kickstart/plugins/telescope.lua

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,38 @@ return {
5555
-- You can put your default mappings / updates / etc. in here
5656
-- All the info you're looking for is in `:help telescope.setup()`
5757
--
58-
-- defaults = {
59-
-- mappings = {
60-
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
61-
-- },
62-
-- },
63-
-- pickers = {}
58+
defaults = {
59+
mappings = {
60+
i = {
61+
['<C-j>'] = require('telescope.actions').move_selection_next,
62+
['<C-k>'] = require('telescope.actions').move_selection_previous,
63+
-- ['<c-enter>'] = 'to_fuzzy_refine'
64+
},
65+
},
66+
layout_config = {
67+
vertical = {
68+
height = function(_, _, l)
69+
return l
70+
end,
71+
width = function(_, c, _)
72+
return c
73+
end,
74+
prompt_position = 'bottom',
75+
preview_cutoff = 1,
76+
},
77+
},
78+
},
79+
pickers = {
80+
live_grep = {
81+
layout_strategy = 'vertical',
82+
},
83+
find_files = {
84+
layout_strategy = 'vertical',
85+
},
86+
buffers = {
87+
theme = 'ivy',
88+
},
89+
},
6490
extensions = {
6591
['ui-select'] = {
6692
require('telescope.themes').get_dropdown(),

0 commit comments

Comments
 (0)