We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68fc4c2 commit aae0185Copy full SHA for aae0185
lua/nvim-tree/diagnostics.lua
@@ -128,8 +128,7 @@ function M.update_lsp(ev)
128
129
local profile_event = log.profile_start("DiagnosticChanged event")
130
131
- ---@type vim.Diagnostic[]
132
- local diagnostics = ev.data.diagnostics
+ local diagnostics = vim.diagnostic.get(ev.buf)
133
134
-- use the buffer from the event, as ev.data.diagnostics will be empty on resolved diagnostics
135
local bufname = uniformize_path(vim.api.nvim_buf_get_name(ev.buf))
0 commit comments