feat(diagnostic): pass diagnostics as data to DiagnosticChanged autocmd (#20173)

This commit is contained in:
Gregory Anders
2022-09-13 08:33:39 -06:00
committed by GitHub
parent f19e91acd8
commit 1970d2ac43
3 changed files with 22 additions and 6 deletions

View File

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