Skip to content

Commit

Permalink
fix(debug): calculate stacktrace outisde of vim schedule to make it u…
Browse files Browse the repository at this point in the history
…seful
  • Loading branch information
folke committed Dec 16, 2022
1 parent 78ec5c6 commit a5de1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/util/call.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function M:format(err, stack)
end

function M:notify(err)
local msg = self:format(err, Config.options.debug)
vim.schedule(function()
local msg = self:format(err, Config.options.debug)
if not pcall(Util.error, msg) then
vim.notify(msg, vim.log.levels.ERROR, { title = "noice.nvim" })
end
Expand Down

0 comments on commit a5de1ca

Please sign in to comment.