Skip to content

vivek-x-jha/neovim-macos-launcher

Repository files navigation

Neovim MacOS Launcher

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

Steps

  1. Launch Automator (Finder -> Applications -> Automator)
  2. New Document -> Choose a type for your document: Application
  3. In Actions search for Run AppleScript and drag that to where it says "Drag actions or files here to buid your workflow."
  4. Delete the default example of AppleScript
  5. Copy and Paste the code in the blog (where it says NeoVim.app) to where it previous had the default code
  6. Save the new Automator app as /Applications/Neovim.app
  7. 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".
  8. Do the same to other file types if you wish.
  9. You can now double click on your PHP files (or others if you did the same) and open them in NeoVim. Enjoy!

Tasks

  • 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

About

Neovim Launcher scripts for MacOS terminals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published