/NvimProxy

A lightweight Cocoa app to handle the Apple Event sent by Unity on opening a script file & proxying it (with line number info) to Neovim remote script

Primary LanguageObjective-C

Nvim Proxy

To install:

  • Build it (was compiled on Mac OSX 10.11.2 64-bit)
  • Put NvimProxy.app wherever you want
  • Make sure you have neovim and neovim remote installed from brew:
    brew tap neovim/neovim
    brew install nvim
    pip3 install neovim-remote
  • Make sure you have iTerm installed (and configured to have global hotkey toggle)
  • Point Unity's External Editor setting at the NvimProxy app
  • Launch iTerm2, best use with tmux
  • Laucnh neovim in remote mode with following socket:
$ NVIM_LISTEN_ADDRESS=/tmp/nvimsocket nvim
  • Double-click console message/monoscript to bring iTerm automatically in foreground with neovim showing corresponding file at correct line.

Special thanks to:

  • Tim Keating who got the barebones event handler setup
  • Allan Lavell who did the heavy lifting for SublimeProxy (https://github.com/thinkrad/SublimeProxy)
  • CapnCromulent for VSCProxy, which was used as base for this little helper