Skip to content

Commit f2e4f6a

Browse files
authored
fix: schedule nvim_echo (#1683)
1 parent 914b8e3 commit f2e4f6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/blink/cmp/lib/utils.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ function utils.notify(msg, lvl)
183183
table.insert(msg, 2, { ' ' })
184184

185185
if _ui_entered then
186-
-- After UIEnter emit message immediately
187-
vim.api.nvim_echo(msg, true, { err = true, verbose = false })
186+
vim.schedule(function() vim.api.nvim_echo(msg, true, { err = true, verbose = false }) end)
188187
else
189188
-- Queue notification for the UIEnter event.
190189
table.insert(_notification_queue, function() vim.api.nvim_echo(msg, true, { verbose = false }) end)

0 commit comments

Comments
 (0)