Skip to content

Commit f30efc6

Browse files
authored
feat(picker-lsp-mappings): Add standard gO binding for LSP symbols (#1439)
feat(picker-lsp-mappings): Add standard `gO` binding for LSP document symbols
1 parent 8be2adf commit f30efc6

File tree

1 file changed

+4
-0
lines changed
  • lua/astrocommunity/recipes/picker-lsp-mappings

1 file changed

+4
-0
lines changed

lua/astrocommunity/recipes/picker-lsp-mappings/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ return {
4040
desc = "LSP Implementations",
4141
cond = "textDocument/implementation",
4242
}
43+
opts.mappings.n.gO = {
44+
function() require("snacks.picker").lsp_symbols() end,
45+
desc = "LSP Document Symbols",
46+
}
4347

4448
if opts.mappings.n.gd then opts.mappings.n.gd[1] = function() require("snacks.picker").lsp_definitions() end end
4549
if opts.mappings.n.gI then

0 commit comments

Comments
 (0)