There was an error while loading. Please reload this page.
1 parent 91173c5 commit 682ca9fCopy full SHA for 682ca9f
1 file changed
lua/coderabbit/diagnostics.lua
@@ -37,6 +37,7 @@ end
37
function M.set(filepath, diagnostics)
38
filepath = vim.fn.fnamemodify(filepath, ":p")
39
local bufnr = vim.fn.bufadd(filepath)
40
+ vim.fn.bufload(bufnr)
41
-- Append to existing diagnostics for this buffer
42
local existing = vim.diagnostic.get(bufnr, { namespace = M.ns })
43
local merged = vim.list_extend(existing, diagnostics)
0 commit comments