Skip to content

Commit

Permalink
fix: defer notifications when starting neovim
Browse files Browse the repository at this point in the history
See #209
  • Loading branch information
rcarriga committed Sep 10, 2023
1 parent ea9c8ce commit b8e0a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/notify/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ end

setmetatable(notify, {
__call = function(_, m, l, o)
if vim.in_fast_event() then
if vim.in_fast_event() or vim.fn.has("vim_starting") then
vim.schedule(function()
notify.notify(m, l, o)
end)
Expand Down

0 comments on commit b8e0a01

Please sign in to comment.