refactor(nvim): improve telescope mappings

This commit is contained in:
Price Hiller 2024-03-04 13:29:01 -06:00
parent 3d938c03e2
commit 0cd626e0f6
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -130,14 +130,21 @@ return {
},
mappings = {
i = {
['<C-j>'] = actions.preview_scrolling_down,
['<C-k>'] = actions.preview_scrolling_up,
['<C-h>'] = actions.preview_scrolling_left,
['<C-l>'] = actions.preview_scrolling_right,
["<C-d>"] = actions.cycle_history_next + actions.delete_buffer + actions.move_to_top,
["<Tab>"] = actions.toggle_selection,
["<C-j>"] = actions.preview_scrolling_down,
["<C-k>"] = actions.preview_scrolling_up,
["<A-s>"] = actions.preview_scrolling_up,
["<A-a>"] = actions.preview_scrolling_down,
["<C-h>"] = actions.preview_scrolling_left,
["<C-l>"] = actions.preview_scrolling_right,
["<C-d>"] = actions.cycle_history_next,
["<A-x>"] = actions.delete_buffer + actions.move_to_top,
["<C-s>"] = actions.cycle_history_prev,
["<C-q>"] = actions.smart_send_to_qflist,
},
n = {
["<C-q>"] = actions.smart_send_to_qflist,
},
},
prompt_prefix = "",
selection_caret = " ",