From fb83b971f68656ad6ed852db343883f998c60984 Mon Sep 17 00:00:00 2001 From: Aotrix Date: Fri, 14 Feb 2025 01:48:48 +0100 Subject: added MORE telescope --- lua/telescope/telescope.lua | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'lua/telescope/telescope.lua') diff --git a/lua/telescope/telescope.lua b/lua/telescope/telescope.lua index 2902903..da2a0f6 100644 --- a/lua/telescope/telescope.lua +++ b/lua/telescope/telescope.lua @@ -1,11 +1,29 @@ +local actions = require("telescope.actions") + require("telescope").setup({ - extensions = { - coc = { - theme = 'ivy', - prefer_locations = true, -- always use Telescope locations to preview definitions/declarations/implementations etc - push_cursor_on_edit = true, -- save the cursor position to jump back in the future - timeout = 3000, -- timeout for coc commands - } - }, + defaults = { + -- Default configuration for telescope goes here: + -- config_key = value, + mappings = { + i = { + -- map actions.which_key to (default: ) + -- actions.which_key shows the mappings for your picker, + -- e.g. git_{create, delete, ...}_branch for the git_branches picker + [""] = actions.move_selection_next, + [""] = actions.move_selection_previous, + [""] = actions.preview_scrolling_down, + [""] = actions.preview_scrolling_up, + [""] = actions.close, + } + } + }, + extensions = { + coc = { + theme = 'ivy', + prefer_locations = true, -- always use Telescope locations to preview definitions/declarations/implementations etc + push_cursor_on_edit = true, -- save the cursor position to jump back in the future + timeout = 3000, -- timeout for coc commands + } + }, }) require('telescope').load_extension('coc') -- cgit v1.2.3