From c4415dfa6df67465756c4fcc29d395b36663b9f4 Mon Sep 17 00:00:00 2001 From: Nicolas Rannou Date: Sun, 16 Jun 2024 17:43:12 +0200 Subject: [PATCH] shortcuts --- lua/custom/plugins/telescope.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/telescope.lua b/lua/custom/plugins/telescope.lua index 6ed4247f..c9e0c5c1 100644 --- a/lua/custom/plugins/telescope.lua +++ b/lua/custom/plugins/telescope.lua @@ -46,7 +46,7 @@ return { -- Fuzzy Finder (files, lsp, etc) -- - Normal mode: ? -- -- This opens a window that shows you all of the keymaps for the current - -- Telescope picker. This is really useful to discover what Telescope can + -- Telescope builtin.lsp_workspace_symbolspicker. This is really useful to discover what Telescope can -- do as well as how to actually do it! -- [[ Configure Telescope ]] @@ -60,7 +60,7 @@ return { -- Fuzzy Finder (files, lsp, etc) -- i = { [''] = 'to_fuzzy_refine' }, -- }, -- }, - -- pickers = {} + -- pickers = {}, extensions = { ["ui-select"] = { require("telescope.themes").get_dropdown(), @@ -84,6 +84,8 @@ return { -- Fuzzy Finder (files, lsp, etc) vim.keymap.set("n", "sr", builtin.resume, { desc = "[S]earch [R]esume" }) vim.keymap.set("n", "s.", builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' }) vim.keymap.set("n", "", builtin.buffers, { desc = "[ ] Find existing buffers" }) + vim.keymap.set("n", "sp", builtin.lsp_workspace_symbols, { desc = "[S]earch [P]roject" }) + vim.keymap.set("n", "so", builtin.lsp_document_symbols, { desc = "[S]earch [O]utline" }) -- Slightly advanced example of overriding default behavior and theme vim.keymap.set("n", "/", function()