Open ashrasmun opened 7 months ago
I tried this, which works in regular neovim: --- snip start --- To open files in an existing instance of neovim, you can use the --remote or --remote-tab options provided by Neovim. You need to ensure that a Neovim server is running. Start the server with a specific server name:
goneovim --wsl -- --listen /tmp/nvimsocket
You can then open files in this instance using:
goneovim --wsl -- --server /tmp/nvimsocket --remote-tab somefile.txt
You'll need to ensure this server instance is always running when you try to open a new file. This setup might require some automation or a startup script.
--- snip end ---
And this kind of works. Unfortunately the second command spawns a new instance with an empty window. The file is however opened in the first instance.
This would be a fantastic feature. I am not able to use --wsl, so a native solution would be awesome.
Hello,
As a user, I would like to have only one instance on Goneovim opened at all times and be able to open files by default in that one instance without the need to circumvent it with scripts. GVim had a switch, I recon it was
--remote
, that enabled that functionality, but I've never seen it in Neovim.Visual Code opens files like that.