Closed Bekaboo closed 1 year ago
Hello, I'm getting the same error but with another workflow (but not the one you described):
:q
for example)And I get the error:
Error detected while processing CursorMoved Autocommands for "<buffer=1>":
Error executing lua callback: ...pack/lazy-managed-plugins/start/alpha-nvim/lua/alpha.lua:567: Invalid window id: 1000
stack traceback:
[C]: in function 'nvim_win_get_cursor'
...pack/lazy-managed-plugins/start/alpha-nvim/lua/alpha.lua:567: in function 'move_cursor'
...pack/lazy-managed-plugins/start/alpha-nvim/lua/alpha.lua:473: in function <...pack/lazy-managed-plugins/start/alpha-nvim/lua/alpha.lua:473>
NOTE: Writing this comment, I noticed another bug: splitting the Alpha window actually doesn't work, the new window doesn't have the same bindings as the first window..
should be fixed in 704ff0fc0660caf85080f1443ccf6e03ea401fe6
@goolord Hi, this is actually not fixed, and here is a demo of the bug:
probably reintroduced by https://github.com/goolord/alpha-nvim/pull/201
reverted, confirmed it's fixed @Bekaboo
maybe i should get to writing tests for this plugin now, which i'm not totally sure how i'll do
@goolord I tested it again and seems that it is only fixed for the startify
theme but not for dashboard
and theta
. I'm testing against the default config, i.e. requirerequire'alpha'.setup(require'alpha.themes.theta'.config)
and require('alpha').setup(require('alpha.themes.dashboard').config)
.
ok, i have made window handling a bit more principled, and this should be fixed in the theta
and dashboard
themes
this is what i was trying to avoid, ultimately, but neovim autocommands suck really bad for this usecase
please read the documentation before asking questions about configuration or creating a feature request
for bugs: provide the expected behavior and the actual behavior, and screenshots if you want to be nice
Minimal config:
To reproduce this issue:
nvim
<C-w>s
or<C-w>v
<C-w>o
Demo:
https://user-images.githubusercontent.com/76579810/211458731-e4dce6b4-9dbf-4ca5-a0ad-5ab573d5db25.mp4