Closed thieung closed 1 year ago
yes the intent is for it to be centered, alpha will redraw (and thus center) for nvim-tree, I didn't consider that another plugin like this wouldn't fire the same autocmd events..
I have the same problem with nvim-tree.lua when setting the option open_on_setup = true
. If I leave and reenter the Alpha window, it redraws and centers correctly.
I've experienced a similar issue with command line auto-completion (using nvim-cmp), where alpha is redrawn every time a new popup appears. This normally wouldn't be an issue, but I'm using a randomized header function so this is jarring. I assume both of these issues are caused by a WinNew autocommand. Perhaps this should be user configurable?
It works on nvim-tree, but in neo-tree, when neo-tree is closed, the cursor is not in alpha menu, when I move cursor down to the menu, it works and alpha is centered. Any workaround? thanks
using the new-ish WinResized this should be fixed https://github.com/goolord/alpha-nvim/commit/1dcd325e2e5dcfe40de48013bc587adc5f74582a
just testing it looks good to me now
note: this https://github.com/goolord/alpha-nvim/commit/1dcd325e2e5dcfe40de48013bc587adc5f74582a only works on neovim version 0.10 or greater, so if you're on an older version of neovim this still be broken, and i have no intention of hacking together a solution without WinResized
With dashboard-nvim, when I open neo-tree, it still centered. But after movibng to alpha-nvim, it's not. See below screenshot:
Should we make it always be centered like dashboard-nvim?