fix(diagnostic): populate data key in DiagnosticChanged autocmd in reset (#20207)

Follow up to #20173.
This commit is contained in:
Gregory Anders
2022-09-15 11:03:07 -06:00
committed by GitHub
parent 89b9eab638
commit 982fef6018

View File

@@ -1426,6 +1426,7 @@ function M.reset(namespace, bufnr)
vim.api.nvim_exec_autocmds('DiagnosticChanged', {
modeline = false,
buffer = iter_bufnr,
data = { diagnostics = {} },
})
end
end