Skip to content

Commit b8e0a01

Browse files
committed
fix: defer notifications when starting neovim
See #209
1 parent ea9c8ce commit b8e0a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/notify/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ end
183183

184184
setmetatable(notify, {
185185
__call = function(_, m, l, o)
186-
if vim.in_fast_event() then
186+
if vim.in_fast_event() or vim.fn.has("vim_starting") then
187187
vim.schedule(function()
188188
notify.notify(m, l, o)
189189
end)

0 commit comments

Comments
 (0)