]> Sergey Matveev's repositories - vim-lsp.git/commit
Never show diagnostics when they are disabled
authorMagnus Groß <magnus@mggross.com>
Tue, 11 Jul 2023 16:56:19 +0000 (18:56 +0200)
committerMagnus Groß <magnus@mggross.com>
Tue, 11 Jul 2023 16:56:19 +0000 (18:56 +0200)
commit6f93e751059f59009b5608539272380dcdbb16db
tree97b502e26938c5c8e7c0eeaf1cfa94310c60b813
parent58a93a2b93302a9a63cb1df2ae3b1b1b88cbb1c5
Never show diagnostics when they are disabled

A regression was introduced in 6e4ba228eaa0770470060d8d47a360bd05a04ee5
that causes diagnostics to be displayed on buffer reload, even when the
user disabled them.

Fix this by moving the option check directly to DiagsRefresh.
autoload/lsp/diag.vim