From 7cf25738ccaae4eb3cfffe6460a7a838ae95bbb6 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 15 Mar 2024 16:07:14 +0300 Subject: [PATCH] nvim telescope mappings --- .../nvim/lua/base/plugins/telescope.lua | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/home/user/.config/nvim/lua/base/plugins/telescope.lua b/home/user/.config/nvim/lua/base/plugins/telescope.lua index 83f2d7f..0234b57 100644 --- a/home/user/.config/nvim/lua/base/plugins/telescope.lua +++ b/home/user/.config/nvim/lua/base/plugins/telescope.lua @@ -17,6 +17,7 @@ return { }, config = function() local telescope = require("telescope") + local actions = require("telescope.actions") telescope.load_extension("fzf") @@ -27,6 +28,21 @@ return { }, }, defaults = { + mappings = { + i = { + [""] = actions.move_selection_next, + [""] = actions.move_selection_previous, + [""] = actions.preview_scrolling_down, + [""] = actions.preview_scrolling_up, + [""] = actions.toggle_all, + ["?"] = actions.which_key, + ["jf"] = { "", type = "command" }, + }, + n = { + ["jf"] = actions.close, + ["?"] = actions.which_key, + } + }, selection_caret = " ", path_display = { "truncate" }, file_ignore_patterns = { @@ -82,4 +98,4 @@ return { } }) end -} +} \ No newline at end of file