Skip to content

Commit 517cf66

Browse files
committed
fix: return args in diagnostocs seed func, fixes #103
1 parent 5edc521 commit 517cf66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neo-tree.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ local define_events = function()
5656
end
5757
events.define_autocmd_event(events.VIM_DIAGNOSTIC_CHANGED, { diag_autocmd }, 500, function(args)
5858
args.diagnostics_lookup = utils.get_diagnostic_counts()
59+
return args
5960
end)
6061

6162
events.define_autocmd_event(events.VIM_BUFFER_CHANGED, { "BufWritePost", "BufFilePost" }, 200)
@@ -268,7 +269,7 @@ M.buffer_enter_event = function(args)
268269
vim.cmd("b#")
269270
-- Using schedule at this point fixes problem with syntax
270271
-- highlighting in the buffer. I also prevents errors with diagnostics
271-
-- trying to work with gthe buffer as it's being closed.
272+
-- trying to work with the buffer as it's being closed.
272273
vim.schedule(function()
273274
-- try to delete the buffer, only because if it was new it would take
274275
-- on options from the neo-tree window that are undesirable.

0 commit comments

Comments
 (0)