refactor: update usages of deprecated "buffer" param #39089

This commit is contained in:
Justin M. Keyes
2026-04-15 14:45:26 -04:00
committed by GitHub
parent 71ac4db335
commit 646ce85aa5
17 changed files with 41 additions and 41 deletions

View File

@@ -455,7 +455,7 @@ function M.set(namespace, bufnr, diagnostics, opts)
api.nvim_exec_autocmds('DiagnosticChanged', {
modeline = false,
buffer = vim._resolve_bufnr(bufnr),
buf = vim._resolve_bufnr(bufnr),
-- TODO(lewis6991): should this be deepcopy()'d like they are in vim.diagnostic.get()
data = { diagnostics = diagnostics },
})
@@ -766,7 +766,7 @@ function M.reset(namespace, bufnr)
if api.nvim_buf_is_valid(iter_bufnr) then
api.nvim_exec_autocmds('DiagnosticChanged', {
modeline = false,
buffer = iter_bufnr,
buf = iter_bufnr,
data = { diagnostics = {} },
})
else