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

Commit

Permalink
Fix LspDiagnosticsChanged not firing
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
ndreas committed Jun 17, 2020
1 parent f6e1c74 commit f8b312d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function M.publish_diagnostics(bufnr)

vim.schedule_wrap(function()
vim.api.nvim_command("doautocmd User LspDiagnosticsChanged")
end)
end)()
end

function M.refresh_diagnostics()
Expand Down

0 comments on commit f8b312d

Please sign in to comment.