startup.nvim icon indicating copy to clipboard operation
startup.nvim copied to clipboard

Starting nvim from stdin does not work

Open clebs opened this issue 2 years ago • 2 comments

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:

  1. Run echo "Hello World!" | nvim - with the plugin disabled
  2. Run echo "Hello World!" | nvim - with the plugin enabled
  3. 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 avatar Jan 10 '24 12:01 clebs

@clebs idk about startup, i open my dashboard module only when there's an empty buffer during startup

image

@max397574 there should be a better solution

siduck avatar Aug 23 '24 10:08 siduck

Thanks for the workaround @siduck! Will try it out.

But agree that this should probably be checked by the plugin.

clebs avatar Sep 16 '24 11:09 clebs