Skip to content

Instantly share code, notes, and snippets.

@mutcianm
Created February 7, 2020 13:14
Show Gist options
  • Save mutcianm/fd5abf583487c71f3f29bea415e2f611 to your computer and use it in GitHub Desktop.
Save mutcianm/fd5abf583487c71f3f29bea415e2f611 to your computer and use it in GitHub Desktop.
Simple interface for NeoVim RPC command invocation
#!/usr/bin/env python3
from pynvim import attach
import sys
def main():
nvim = attach('socket', path=sys.argv[1])
nvim.command(sys.argv[2])
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment