Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit f8b312d

Browse files
committed
Fix LspDiagnosticsChanged not firing
vim.schedule_wrap() returns a function that needs to be executed in order to schedule the actual execution of the function taken by schedule_wrap()
1 parent f6e1c74 commit f8b312d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/diagnostic.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function M.publish_diagnostics(bufnr)
9090

9191
vim.schedule_wrap(function()
9292
vim.api.nvim_command("doautocmd User LspDiagnosticsChanged")
93-
end)
93+
end)()
9494
end
9595

9696
function M.refresh_diagnostics()

0 commit comments

Comments
 (0)