override_vim_notify = true
-> notification captures cursor on :q
#241
Labels
bug
Something isn't working
Discussed in https://github.com/j-hui/fidget.nvim/discussions/218
Note
GitHub Discussions are now disabled for this project, so the above link will 404, but the relevant discussion with @mrcjkb is reproduced below.
Originally posted by mrcjkb March 4, 2024
Hey 👋
I really like fidget's
override_vim_notify
feature, as it usually doesn't get in my way, but I can look up notifications when I need them.I've just been having one issue:
Sometimes, when trying to exit with
:q
or:wq
while fidget is displaying a notification, instead of quitting Neovim, the cursor will move to the notification window.I can consistently reproduce this with neogit (having the
disable_builtin_notifications
option set totrue
- which disables Neogit's notifications and usesvim.notify
instead)It always happens when I
:Neogit
cc
to commit:wq
to commitq
to close the Neogit tab - meanwhile theCommitted!
notification shows up in fidget.:wq
-> cusor moves to the fidget notification floating window (if I hit<CR>
before the notification window is closed).Here's the weird part:
I cannot reproduce the behaviour if I manually trigger the notification that Neogit sends with
As I've only observed this behaviour with neogit notifications, I decided to put this in the Q&A.
It's probably not a fidget.nvim bug...
Ah interesting, do you also get this error message?
I'm able to reproduce this issue, though am a little puzzled about what the cause might be. In particular, I'm not sure which buffer it is that was modified but has unsaved changes (the buffer for the Git-tracked
somefile
is clean).Yes, I think I was seeing similar error messages.
Yep, I can confirm I am getting the same error message.
It's quite consistent with neogit, but I haven't observed it anywhere else.
The text was updated successfully, but these errors were encountered: