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:
- Wezterm
- iTerm
- Alacritty
- Kitty
- Terminal
- 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 "Drag actions or files here to buid your workflow."
- 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 as /Applications/Neovim.app
- 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 Aplications 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
- Debug wezterm launcher creating queue of commands that launch only when initial process terminates