Skip to content

Commit c4415df

Browse files
committed
shortcuts
1 parent 186aa52 commit c4415df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/custom/plugins/telescope.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ return { -- Fuzzy Finder (files, lsp, etc)
4646
-- - Normal mode: ?
4747
--
4848
-- This opens a window that shows you all of the keymaps for the current
49-
-- Telescope picker. This is really useful to discover what Telescope can
49+
-- Telescope builtin.lsp_workspace_symbolspicker. This is really useful to discover what Telescope can
5050
-- do as well as how to actually do it!
5151

5252
-- [[ Configure Telescope ]]
@@ -60,7 +60,7 @@ return { -- Fuzzy Finder (files, lsp, etc)
6060
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
6161
-- },
6262
-- },
63-
-- pickers = {}
63+
-- pickers = {},
6464
extensions = {
6565
["ui-select"] = {
6666
require("telescope.themes").get_dropdown(),
@@ -84,6 +84,8 @@ return { -- Fuzzy Finder (files, lsp, etc)
8484
vim.keymap.set("n", "<leader>sr", builtin.resume, { desc = "[S]earch [R]esume" })
8585
vim.keymap.set("n", "<leader>s.", builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
8686
vim.keymap.set("n", "<leader><leader>", builtin.buffers, { desc = "[ ] Find existing buffers" })
87+
vim.keymap.set("n", "<leader>sp", builtin.lsp_workspace_symbols, { desc = "[S]earch [P]roject" })
88+
vim.keymap.set("n", "<leader>so", builtin.lsp_document_symbols, { desc = "[S]earch [O]utline" })
8789

8890
-- Slightly advanced example of overriding default behavior and theme
8991
vim.keymap.set("n", "<leader>/", function()

0 commit comments

Comments
 (0)