Starting nvim from stdin does not work
Describe the bug
When executing neovim to take stdin as a new buffer (e.g. echo "Hello World!" | nvim -) the startup screen appears and the new untitled buffer that should hold the piped contents isn't there.
Checklist
- [x] Checked if issue already exists
- [x] I'm using the latest startup.nvim version
To Reproduce Steps to reproduce the behavior:
- Run
echo "Hello World!" | nvim -with the plugin disabled - Run
echo "Hello World!" | nvim -with the plugin enabled - Compare behaviour
Expected behavior
When piping content from stdin the startup screen should not appear, same as when opening a file (e.g. nvim my-file.txt).
Additional Info Config Not relevant
Neovim Version
v0.9.5
@clebs idk about startup, i open my dashboard module only when there's an empty buffer during startup
@max397574 there should be a better solution
Thanks for the workaround @siduck! Will try it out.
But agree that this should probably be checked by the plugin.