A Neovim plugin enabling you to solve LeetCode problems.
fix(spinner): `nvim_echo` in fast event context (#190)
1 file changed, +3 -1
+3-1lua/leetcode/logger/spinner/init.lua
| @@ -127,7 +127,9 @@ function Spinner:replace() | ||
| 127 | 127 | msg = msg .. "…" |
| 128 | 128 | end |
| 129 | 129 | |
| 130 | - self.notif = vim.notify(msg, self.lvl, self.opts) | |
| 130 | + vim.schedule(function() | |
| 131 | + self.notif = vim.notify(msg, self.lvl, self.opts) | |
| 132 | + end) | |
| 131 | 133 | end |
| 132 | 134 | |
| 133 | 135 | ---@private |