go-client
go-client copied to clipboard
Automate manifest generation
Plugin authors generate a plugin manifest using the following steps:
- Build the plugin application using
go
,gb
or some other development tool. - Run the application with the
--manifest=hostName
command line flag to print a manifest. - Add the the manifest to a .vim file (example).
These steps must be repeated every time the plugin handler registrations are changed.
This process should be automated in some way. Possible options are:
- Modify the plugin application to update a .vim file directly instead of printing the manifest to stdout.
- Create a
go generate
tool for updating manifests. - Modify :UpdateRemotePlugins to work with compiled executables.
Here's one possible workflow for users:
- User adds the plugin binary to $PATH. The
go get
command is one way to do this. - User adds line to init.vim to register binary:
remote#host#RegisterExecutable('mycommand')
- User runs :UpdateRemotePlugins
This workflow requires the addition of RegisterExecutable
and modification of remote#host#UpdateRemotePlugins
.
was this addressed by https://github.com/neovim/go-client/pull/25 ?