nvim: lsp: document_symbol is now mapped by default to gO

See :help lsp-defaults.
This commit is contained in:
Sanchayan Maity 2024-10-28 19:23:51 +05:30
parent 1d1a3539c8
commit 86c1da359e
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -59,8 +59,7 @@ local lsp_key_mappings = {
{ "textDocument/definition" , 'n', 'pd' , '<cmd>lua PeekDefinition()<CR>' }, { "textDocument/definition" , 'n', 'pd' , '<cmd>lua PeekDefinition()<CR>' },
{ "textDocument/definition" , 'n', 'gd' , '<cmd>lua vim.lsp.buf.definition()<CR>' }, { "textDocument/definition" , 'n', 'gd' , '<cmd>lua vim.lsp.buf.definition()<CR>' },
{ "textDocument/typeDefinition" , 'n', '<C-k>' , '<cmd>lua vim.lsp.buf.type_definition()<CR>' }, { "textDocument/typeDefinition" , 'n', '<C-k>' , '<cmd>lua vim.lsp.buf.type_definition()<CR>' },
{ "textDocument/documentSymbol" , 'n', '1gd' , '<cmd>lua vim.lsp.buf.document_symbol()<CR>' }, { "workspace/symbol" , 'n', '1gd' , '<cmd>lua vim.lsp.buf.workspace_symbol()<CR>' },
{ "workspace/symbol" , 'n', '1gD' , '<cmd>lua vim.lsp.buf.workspace_symbol()<CR>' },
{ "textDocument/inlayHint" , 'n', 'gi' , '<cmd>lua InlayHintToggle()<CR>' }, { "textDocument/inlayHint" , 'n', 'gi' , '<cmd>lua InlayHintToggle()<CR>' },
{ "textDocument/rangeFormatting", 'x', 'gq', '<cmd>lua vim.lsp.buf.format({async=true})<CR>' }, { "textDocument/rangeFormatting", 'x', 'gq', '<cmd>lua vim.lsp.buf.format({async=true})<CR>' },