mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user