]> Sergey Matveev's repositories - vim-lsp.git/commit
Add ! to ":LspDiagCurrent" to only show the diag if it's under the cursor
authorAndreas Louv <andreas@louv.dk>
Sun, 2 Apr 2023 23:05:26 +0000 (01:05 +0200)
committerAndreas Louv <andreas@louv.dk>
Sun, 2 Apr 2023 23:40:53 +0000 (01:40 +0200)
commitbe2221b5e7f9ee25e1fb88bdc48a4678a182cb97
tree1826ea85dfd24750ed6f1e52b15599a8ef9b7331
parent4d1b72eecd6d3d5f93018621a8bbd82cfc10f1f1
Add ! to ":LspDiagCurrent" to only show the diag if it's under the cursor

This is nice to tie together with a "CursorMoved" autocmd:

augroup LspCustom
  au!
  au CursorMoved * silent! LspDiagCurrent!
augroup END
autoload/lsp/diag.vim
autoload/lsp/lsp.vim
plugin/lsp.vim