-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying notifications on startup does not work when opening multiple files in split windows (nvim -o / nvim -O...) #209
Comments
I see the same thing with nvim -d (vimdiff). I am on nightly and do not have the issue with the plugin disabled. |
I have the same issue on NVIM v0.9.1 release. I originally filed the bug here but I've closed it since it duplicates this bug. +1 |
This seems to be a neovim internal bug with opening a floating window during startup while there are multiple split windows. A similar effect can be seen by just adding the following to your
I've added a workaround so please let me know if the issue is solved 😄 |
Beautiful, deferring the call seems to fix it for me (at least with splits, I didn't test the I think this can be closed. |
The `vim_starting` workaround in rcarriga#209 makes test failing, because `notify(...)` no longers return any value when `vim.schedule`-ed. In the headless mode (under which plenary unit tests are running), we do not need to defer the execution. This should fix all the tests that were failing.
Hey! Thanks for this plugin. It looks great, but I think I found a small bug. I don't believe the issue is with my configuration, as I seem to be able to reproduce it with the default config.
Reproducing the bug
To reproduce (please adjust paths and commands accordingly if necessary, e.g. non-POSIX system):
Copy/paste the contents into the file:
After saving and exiting, open multiple files in a vertical split with this minimal config:
# note that -o also seems to reproduce the bug. nvim -u /tmp/notify-test/example.lua -O /tmp/randomfile /tmp/notify-test/example.lua
Actual behavior
This opens
/tmp/randomfile
as a single window, and the notification displays the contents of the file/tmp/notify-test/example.lua
.Expected behavior
Neovim should open the two files side-by-side in a vertical split, and the notification should display "Oh, no!"
Tech specs
OS: Arch Linux
nvim: 0.9.1-1 (latest version in the Arch repos)
nvim-notify: ea9c8ce, tagged v3.12.0
Conclusions
The text was updated successfully, but these errors were encountered: