diff options
| author | Aotrix <[email protected]> | 2025-02-14 01:48:48 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-02-14 01:48:48 +0100 |
| commit | fb83b971f68656ad6ed852db343883f998c60984 (patch) | |
| tree | 10bb0234b37e35a74513e41992dab012b25f394e /lua/telescope | |
| parent | 3674235ff17eba9f04f2a4189aad6e86d5ce2747 (diff) | |
added MORE telescope
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/telescope.lua | 34 |
1 files changed, 26 insertions, 8 deletions
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 <C-h> (default: <C-/>) + -- actions.which_key shows the mappings for your picker, + -- e.g. git_{create, delete, ...}_branch for the git_branches picker + ["<C-j>"] = actions.move_selection_next, + ["<C-k>"] = actions.move_selection_previous, + ["<C-n>"] = actions.preview_scrolling_down, + ["<C-p>"] = actions.preview_scrolling_up, + ["<esc>"] = 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') |
