doc/lsp.txt | 9 +++++++-- diff --git a/doc/lsp.txt b/doc/lsp.txt index bce3d0f218d6acff7b58664b3f926334728b813e..206ec37fec08b9563ac2eb1a8b23007dc8ee4a28 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -642,8 +642,13 @@ :tab LspGotoDefinition < You may want to map a key to invoke this command: > - nnoremap gd LspGotoDefinition - nnoremap gd topleft LspGotoDefinition + nnoremap gd LspGotoDefinition + nnoremap gd topleft LspGotoDefinition +< + Or if you want to support [count]gd > + + nnoremap gd execute v:count .. 'LspGotoDefinition' + nnoremap gd execute 'topleft ' .. v:count .. 'LspGotoDefinition' < *:LspGotoImpl* :[count]LspGotoImpl Jumps to the implementation of the symbol under the