doc/lsp.txt | 8 ++++++++ diff --git a/doc/lsp.txt b/doc/lsp.txt index 5937ce7c1eaba2d20f0d45e4582e08b8a22cd4c6..3e6ca7581fe89e95aa612b752dbb2203391521b7 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -443,6 +443,14 @@ :LspDiagCurrent! Only display a diagnostic message if it's directly under 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.