Skip to content

Instantly share code, notes, and snippets.

@spacepluk
Created August 3, 2015 17:40
Show Gist options
  • Save spacepluk/4c2a04b522724663bcbc to your computer and use it in GitHub Desktop.
Save spacepluk/4c2a04b522724663bcbc to your computer and use it in GitHub Desktop.
#!/usr/bin/env python2
import sys
from neovim import attach
try:
#nvim = attach('socket', host='127.0.0.1', port='6666')
nvim = attach('socket', path='/tmp/figwheel')
nvim.command('edit ' + sys.argv[1])
nvim.command(sys.argv[2])
except:
pass
exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment