aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/diagnostic.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2021-11-25 11:55:11 -0700
committerGitHub <noreply@github.com>2021-11-25 11:55:11 -0700
commit150a5922aae3ed02c9f4eee7e5f162454c42231c (patch)
treefb793b7519ec124132105ab198b920949d9079f6 /runtime/lua/vim/lsp/diagnostic.lua
parent1a60580925865445efbe476931dd02ef1a3a8e7f (diff)
downloadrneovim-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/lua/vim/lsp/diagnostic.lua')
-rw-r--r--runtime/lua/vim/lsp/diagnostic.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua
index 76a4dc30b7..3b214c49f9 100644
--- a/runtime/lua/vim/lsp/diagnostic.lua
+++ b/runtime/lua/vim/lsp/diagnostic.lua
@@ -220,9 +220,6 @@ function M.on_publish_diagnostics(_, result, ctx, config)
end
vim.diagnostic.set(namespace, bufnr, diagnostic_lsp_to_vim(diagnostics, bufnr, client_id))
-
- -- Keep old autocmd for back compat. This should eventually be removed.
- vim.api.nvim_command("doautocmd <nomodeline> User LspDiagnosticsChanged")
end
--- Clear diagnotics and diagnostic cache.