Another nvim howto, to remind myself how to do this when I want to set up Neovide on a new machine …
I previously (ie up until last week) used MacVim, and was able to open files using the mvim command. By default, Neovide is a bit clunkier, running a new instance in the foreground whenever you open it (this might be improved soon). Fortunately someone else has done the hard work for me, so it’s pretty easy to fix.
Firstly, save this script to somewhere in your path (I put it in /usr/local/bin/nv). This gives you an nv command in the shell, which will either open Neovide if it’s not running, or open the files you give it in a running instance.
Secondly, fire up Automator, and create a new application. Add a Run Shell Script action, set it to pass input as arguments, and change the content to the following:
/usr/local/bin/nv "$@"
Save it somewhere (eg in /Applications), then you can tell the Finder to open any files/file types you want to edit in Neovide to open with this application. This also gives you command-click editing in iTerm.