From: Andreas Louv Date: Sun, 16 Apr 2023 22:09:03 +0000 (+0200) Subject: Add example of count in the docs X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ccc89c8523cb0dcffae0d840e537eee125d6faef;p=vim-lsp.git Add example of count in the docs --- diff --git a/doc/lsp.txt b/doc/lsp.txt index bce3d0f..206ec37 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -642,8 +642,13 @@ can map these commands to keys and make it easier to invoke them. < 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