From ccc89c8523cb0dcffae0d840e537eee125d6faef Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Mon, 17 Apr 2023 00:09:03 +0200 Subject: [PATCH] Add example of count in the docs --- doc/lsp.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.50.0