diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2021-11-25 11:55:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 11:55:11 -0700 |
commit | 150a5922aae3ed02c9f4eee7e5f162454c42231c (patch) | |
tree | fb793b7519ec124132105ab198b920949d9079f6 /src | |
parent | 1a60580925865445efbe476931dd02ef1a3a8e7f (diff) | |
download | rneovim-150a5922aae3ed02c9f4eee7e5f162454c42231c.tar.gz rneovim-150a5922aae3ed02c9f4eee7e5f162454c42231c.tar.bz2 rneovim-150a5922aae3ed02c9f4eee7e5f162454c42231c.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/auevents.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/auevents.lua b/src/nvim/auevents.lua index 6be51c504c..7e7114b291 100644 --- a/src/nvim/auevents.lua +++ b/src/nvim/auevents.lua @@ -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, |