chore(diagnostics): follow upstreams autocommand's rename (#796)

See: https://github.com/neovim/neovim/issues/14090#issuecomment-979424077
This commit is contained in:
gegoune 2021-11-27 14:32:30 +02:00 committed by GitHub
parent 5d8453dfbd
commit 5c32c1d8b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ function M.setup(opts)
if M.enable then
if has_06 then
vim.cmd "au User DiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
vim.cmd "au DiagnosticChanged * lua require'nvim-tree.diagnostics'.update()"
else
vim.cmd "au User LspDiagnosticsChanged lua require'nvim-tree.diagnostics'.update()"
end