irongit

A Neovim plugin enabling you to solve LeetCode problems.

fix(logger): schedule `log` in fast events

kawreauthored
parent 74f2987commit 422b6beb4a64eca0524fbff94edd9550c156afc5Browse files

1 file changed, +3 -1

+3-1lua/leetcode/logger/init.lua
@@ -29,7 +29,9 @@ function logger.log(msg, lvl)
2929 msg = debug.traceback(msg .. "\n")
3030 end
3131
32- vim.notify(msg, lvl, { title = title })
32+ vim.schedule(function()
33+ vim.notify(msg, lvl, { title = title })
34+ end)
3335 end
3436
3537 ---@param msg any