Closed TheEpic-dev closed 10 months ago
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 init.lua
local buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_name(buf, "test")
vim.api.nvim_buf_set_lines(buf, 0, -1, false, { "Hello, world!" })
vim.api.nvim_open_win(buf, true, {
relative = "editor",
width = 40,
height = 10,
row = 10,
col = 10,
style = "minimal",
border = "single",
})
I've added a workaround so please let me know if the issue is solved :smile:
Beautiful, deferring the call seems to fix it for me (at least with splits, I didn't test the diff
view). Thanks :smiley:
I think this can be closed.
FYI: Tests are failing since b8e0a01 because nvim.notify() has no longer has return value in tests.
-> PR #227
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:
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