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