Skip to content

Commit eeaef7a

Browse files
authored
Merge branch 'master' into fix-trigger-dirchanged
2 parents e1f5aac + aae0185 commit eeaef7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/nvim-tree/diagnostics.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ function M.update_lsp(ev)
128128

129129
local profile_event = log.profile_start("DiagnosticChanged event")
130130

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

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

0 commit comments

Comments
 (0)