Skip to content

Files

Latest commit

 

History

History
23 lines (20 loc) · 819 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 819 Bytes

This this example Neovim plugin shows how to invoke a Go function from a plugin.

The plugin starts a Go program containing the function as a child process. The plugin invokes functions in the child process using RPC.

Use the following steps to run the plugin:

  1. Build the program with the go tool to an executable named helloremote. Ensure that the executable is in a directory in the PATH environment variable.
    $ cd helloremote
    $ go build
    
  2. Install the plugin in this directory using a plugin manager or by adding this directory to the runtimepath.
  3. Start Nvim and run the following command:
    :Hello world!