Skip to content

Commit 9bff979

Browse files
committed
fix(#3041): use vim.diagnostic.get for updating diagnostics
1 parent 68fc4c2 commit 9bff979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/diagnostics.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function M.update_lsp(ev)
129129
local profile_event = log.profile_start("DiagnosticChanged event")
130130

131131
---@type vim.Diagnostic[]
132-
local diagnostics = ev.data.diagnostics
132+
local diagnostics = vim.diagnostic.get(ev.buf)
133133

134134
-- use the buffer from the event, as ev.data.diagnostics will be empty on resolved diagnostics
135135
local bufname = uniformize_path(vim.api.nvim_buf_get_name(ev.buf))

0 commit comments

Comments
 (0)