From 4c93f5d98fd39c1a01c2c42be39a394b1cc8ebbf Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Mon, 3 Apr 2023 01:07:41 +0200 Subject: [PATCH] Add example to docs --- doc/lsp.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/lsp.txt b/doc/lsp.txt index 5937ce7..3e6ca75 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -443,6 +443,14 @@ can map these commands to keys and make it easier to invoke them. the cursor. Otherwise works exactly like |:LspDiagCurrent| + To show the current diagnotic under the cursor while + moving around the following autocmd can be used: > + + augroup LspCustom + au! + au CursorMoved * silent! LspDiagCurrent! + augroup END +< *:LspDiagFirst* :LspDiagFirst Jumps to the location of the first diagnostic message for the current file. -- 2.48.1