From 86c1da359e9985157323dbb20766b19019e77f70 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 28 Oct 2024 19:23:51 +0530 Subject: [PATCH] nvim: lsp: document_symbol is now mapped by default to gO See :help lsp-defaults. --- nvim/.config/nvim/lua/lsp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/lsp.lua b/nvim/.config/nvim/lua/lsp.lua index 63a03bb..4e552d2 100644 --- a/nvim/.config/nvim/lua/lsp.lua +++ b/nvim/.config/nvim/lua/lsp.lua @@ -59,8 +59,7 @@ local lsp_key_mappings = { { "textDocument/definition" , 'n', 'pd' , 'lua PeekDefinition()' }, { "textDocument/definition" , 'n', 'gd' , 'lua vim.lsp.buf.definition()' }, { "textDocument/typeDefinition" , 'n', '' , 'lua vim.lsp.buf.type_definition()' }, - { "textDocument/documentSymbol" , 'n', '1gd' , 'lua vim.lsp.buf.document_symbol()' }, - { "workspace/symbol" , 'n', '1gD' , 'lua vim.lsp.buf.workspace_symbol()' }, + { "workspace/symbol" , 'n', '1gd' , 'lua vim.lsp.buf.workspace_symbol()' }, { "textDocument/inlayHint" , 'n', 'gi' , 'lua InlayHintToggle()' }, { "textDocument/rangeFormatting", 'x', 'gq', 'lua vim.lsp.buf.format({async=true})' },