Skip to content

vivek-x-jha/neovim-macos-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

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:

  • iTerm
  • Alacritty
  • Terminal
  • Kitty

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 something like "Drag actions here..."
  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 (save as aplicattion format). Save it in the Applications folder
  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 Aplicattions 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

About

Neovim Launcher scripts for MacOS terminals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published