feat(diagnostic)!: make DiagnosticChanged a first class autocmd (#16098)

This allows users to hook into diagnostic events with finer granularity
(e.g. per-buffer or file).

BREAKING CHANGE: DiagnosticsChanged and LspDiagnosticsChanged user
autocommands are removed.
This commit is contained in:
Gregory Anders
2021-11-25 11:55:11 -07:00
committed by GitHub
parent 1a60580925
commit 150a5922aa
4 changed files with 12 additions and 9 deletions

View File

@@ -37,6 +37,7 @@ return {
'CursorHoldI', -- idem, in Insert mode
'CursorMoved', -- cursor was moved
'CursorMovedI', -- cursor was moved in Insert mode
'DiagnosticChanged', -- diagnostics in a buffer were modified
'DiffUpdated', -- diffs have been updated
'DirChanged', -- directory changed
'EncodingChanged', -- after changing the 'encoding' option
@@ -126,6 +127,7 @@ return {
-- syntax file
nvim_specific = {
BufModifiedSet=true,
DiagnosticChanged=true,
DirChanged=true,
Signal=true,
TabClosed=true,