Provides Apple Automator scripts for launching any text files in NeoVim on MacOS. By default, NeoVim is not a native application so opening files in it outside a terminal is troublesome. Inspired by this Stack Overflow thread.
Currently supports:
- iTerm
- Alacritty
- Terminal
- Kitty
- Launch Automator (Finder -> Applications -> Automator)
- New Document -> Choose a type for your document: Application
- In Actions search for Run AppleScript and drag that to where it says something like "Drag actions here..."
- Delete the default example of AppleScript
- Copy and Paste the code in the blog (where it says NeoVim.app) to where it previous had the default code
- Save the new Automator app (save as aplicattion format). Save it in the Applications folder
- Right-Click a file type you wish to open every time you click on them (e.g. .php file). Select Get Info or do cmd + i, it will open informations about that file. Scroll to wher it says Open With and select Other. Then just go to Aplicattions folder and select your new NeoVim "app".
- Do the same to other file types if you wish.
- You can now double click on your PHP files (or others if you did the same) and open them in NeoVim. Enjoy!
- Debug iterm not launching when no windows are open
- Refactor terminal script to open in new window like iterm
- Create script for Kitty