goolord / alpha-nvim

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

Reposition the term as needed #228

Closed relaxdiego closed 1 year ago

relaxdiego commented 1 year ago

This change adds logic that allows the terminal window to reposition accordingly when a window split occurs. For example, when neotree is made visible while alpha is also visible.

goolord commented 1 year ago

this does reposition the terminal but it doesn't seem to center it properly. this might be due to some windowing changes that I've done since this MR was made

goolord commented 1 year ago

alright, my basic terminal header configuration looked pretty good with the changes I pushed. I'd like some additional testing from people who have more complex configs, though

relaxdiego commented 1 year ago

Works perfectly. Thanks!

kaze-k commented 9 months ago

hi, If centered, the floating window will break the layout. Is this the cause of this commit? image image Isn't there anyone else in my situation

goolord commented 9 months ago

can you elaborate on what's wrong in the centered version? is it the height of the terminal window? if so someone has complained about this issue before but I haven't been able to diagnose the problem

kaze-k commented 8 months ago

The problem was resolved when I updated nvim to version 0.9.x, in the previous version, when the floating window was opened, the center would not work