goolord / alpha-nvim

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

No alpha splash screen if some command is ran with `+` when starting nvim #142

Closed WhiteBlackGoose closed 2 years ago

WhiteBlackGoose commented 2 years ago

Hi, thanks for this plugin.

Here's the bug. If you start nvim as usual, it works as expected. But if you do, say,

nvim '+lua print("hello")'

The default nvim's splash screen appears

WhiteBlackGoose commented 2 years ago

Invoking :Alpha though shows the splash screen

goolord commented 2 years ago

this is an intentional feature of alpha

goolord commented 2 years ago

people use the + command syntax for scripting, and I presume most people don't want to start up a buffer they're not going to see or interact with. i tried to make this plugin as annoyance free as possible by default. if you still want to see Alpha then just invoke nvim like thisnvim +Alpha +"echo 'foo'"

WhiteBlackGoose commented 2 years ago

Oh, lol, fair enough. Thanks