Created
February 7, 2020 13:14
-
-
Save mutcianm/fd5abf583487c71f3f29bea415e2f611 to your computer and use it in GitHub Desktop.
Simple interface for NeoVim RPC command invocation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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