Skip to content

Commit 682ca9f

Browse files
committed
load buffer that has been reviewed
1 parent 91173c5 commit 682ca9f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/coderabbit/diagnostics.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ end
3737
function M.set(filepath, diagnostics)
3838
filepath = vim.fn.fnamemodify(filepath, ":p")
3939
local bufnr = vim.fn.bufadd(filepath)
40+
vim.fn.bufload(bufnr)
4041
-- Append to existing diagnostics for this buffer
4142
local existing = vim.diagnostic.get(bufnr, { namespace = M.ns })
4243
local merged = vim.list_extend(existing, diagnostics)

0 commit comments

Comments
 (0)