Skip to content

Commit

Permalink
fix(#3041): use vim.diagnostic.get for updating diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Leo committed Jan 2, 2025
1 parent 68fc4c2 commit 9bff979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-tree/diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function M.update_lsp(ev)
local profile_event = log.profile_start("DiagnosticChanged event")

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

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

0 comments on commit 9bff979

Please sign in to comment.