Tweak Telescope mappings to my liking

This commit is contained in:
Kenneth Benzie 2024-03-06 20:14:39 +00:00
parent 9e5b1597ba
commit 828db0d073

View File

@ -4,7 +4,23 @@ return {
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
}, },
config = function() config = function()
require('telescope').setup({}) local telescope = require('telescope')
telescope.setup({
defaults = {
mappings = {
i = {
['<C-s>'] = 'select_horizontal',
['<C-h>'] = 'preview_scrolling_left',
['<C-l>'] = 'preview_scrolling_right',
},
n = {
['<C-s>'] = 'select_horizontal',
['<C-h>'] = 'preview_scrolling_left',
['<C-l>'] = 'preview_scrolling_right',
}
},
},
})
-- TODO: Add more mappings? -- TODO: Add more mappings?
local opts = { noremap = true } local opts = { noremap = true }