goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.78k stars 104 forks source link

Padding broken when using wilder.nvim #210

Closed koopa1338 closed 1 year ago

koopa1338 commented 1 year ago

Hi,

it seems that the commit 5b7ef660c6f80fbd04cccdf69624bf8c47513471 broke padding when using wilder.nvim (see screenshots). Other floating windows, e.g. from lazy or mason are not breaking the padding of alpha.

alpha_ok

alpha_broken

Edit: also leaving the cmdline triggers an "Column value outside range" error here

goolord commented 1 year ago

i pushed a hotfix for the error at least, i have no idea what's wrong with the autocmds and i'm honestly so tired of banging my head on it. i don't know if it's the window creation api or what, but for some reason the buffer pattern means nothing because when windows are created they just have the alpha buffer anyways which causes these weird bugs

goolord commented 1 year ago

ok i started using the new-ish WinResized event here https://github.com/goolord/alpha-nvim/commit/1dcd325e2e5dcfe40de48013bc587adc5f74582a and it seems to have fixed it. @koopa1338 confirm?

koopa1338 commented 1 year ago

Thanks for the quick response, I tested the latest commit, and that fixed it for me :+1: Just for someone that has a similar issue and is using wilder.nvim, there is a tracking issue for a bug that shows the same behavior for other plugins.

goolord commented 1 year ago

i think there is technically still a pathological case where you resize the window and open the wildmenu on the same frame, but uhhh just don't do that 😅