From 0cd626e0f6f96ddf76fc9a9cf13ab3ef48a75d71 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 4 Mar 2024 13:29:01 -0600 Subject: [PATCH] refactor(nvim): improve telescope mappings --- .../nvim/lua/plugins/configs/telescope.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/telescope.lua b/dots/.config/nvim/lua/plugins/configs/telescope.lua index 91028c1b..28daad3c 100644 --- a/dots/.config/nvim/lua/plugins/configs/telescope.lua +++ b/dots/.config/nvim/lua/plugins/configs/telescope.lua @@ -130,14 +130,21 @@ return { }, mappings = { i = { - [''] = actions.preview_scrolling_down, - [''] = actions.preview_scrolling_up, - [''] = actions.preview_scrolling_left, - [''] = actions.preview_scrolling_right, - [""] = actions.cycle_history_next + actions.delete_buffer + actions.move_to_top, + [""] = actions.toggle_selection, + [""] = actions.preview_scrolling_down, + [""] = actions.preview_scrolling_up, + [""] = actions.preview_scrolling_up, + [""] = actions.preview_scrolling_down, + [""] = actions.preview_scrolling_left, + [""] = actions.preview_scrolling_right, + [""] = actions.cycle_history_next, + [""] = actions.delete_buffer + actions.move_to_top, [""] = actions.cycle_history_prev, [""] = actions.smart_send_to_qflist, }, + n = { + [""] = actions.smart_send_to_qflist, + }, }, prompt_prefix = "  ", selection_caret = " ",