Skip to content

Commit 74f2987

Browse files
authored
fix(spinner): nvim_echo in fast event context (#190)
1 parent 04a4419 commit 74f2987

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/leetcode/logger/spinner/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ function Spinner:replace()
127127
msg = msg .. ""
128128
end
129129

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)
131133
end
132134

133135
---@private

0 commit comments

Comments
 (0)