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 /runtime/doc | |
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 'runtime/doc')
-rw-r--r-- | runtime/doc/diagnostic.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index 1dd9c4f301..d41cee3cdd 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -289,11 +289,11 @@ option in the "signs" table of |vim.diagnostic.config()| or 10 if unset). ============================================================================== EVENTS *diagnostic-events* - *DiagnosticsChanged* -DiagnosticsChanged After diagnostics have changed. + *DiagnosticChanged* +DiagnosticChanged After diagnostics have changed. Example: > - autocmd User DiagnosticsChanged lua vim.diagnostic.setqflist({open = false }) + autocmd DiagnosticChanged * lua vim.diagnostic.setqflist({open = false }) < ============================================================================== ============================================================================== |