From: Andreas Louv Date: Sun, 2 Apr 2023 23:07:41 +0000 (+0200) Subject: Add example to docs X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4c93f5d98fd39c1a01c2c42be39a394b1cc8ebbf;p=vim-lsp.git Add example to docs --- 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.