goolord / alpha-nvim

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

Alpha not passing through things that export their use of nvim (manpager for instance)? #37

Closed megalithic closed 3 years ago

megalithic commented 3 years ago

Hi @goolord!

Great plugin; one odd thing I'm having an issue with..

In my zsh config, I use nvim for $MANPAGER like so: export MANPAGER="$EDITOR +Man!" (I have $EDITOR assigned to use nvim).

When i invoke man <term> from a shell, it opens nvim, but stops at the alpha "dashboard/startscreen"; is there some other option either for nvim or for alpha-nvim that I might need to set let it allow arguments to be passed in/called?

goolord commented 3 years ago

the checks alpha does to decide weather to open are here https://github.com/goolord/alpha-nvim/blob/main/lua/alpha.lua#L396

there's kinda not a way to solve this that's satisfying afaict. a hotfix for you is to change export MANPAGER="$EDITOR -c Man!" but I will try to think of a better way to guard starting alpha on vimenter