Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
Main implements the main function for a Nvim helper application.
Helper applications call the Main function to run the application. The Main function creates a Nvim client, calls the supplied function to register handlers plugin and then runs the server loop to handle requests from Nvim.
Applications should use the default logger in the standard log package to write to Nvim's log.
Types ¶
type App ¶
App represents a helper application for Neovim plugins.
func (*App) Handle ¶
Handle registers fn as a MessagePack RPC handler for the named method. The function signature for fn is one of
func([v *nvim.Nvim,] {args}) ({resultType}, error) func([v *nvim.Nvim,] {args}) error func([v *nvim.Nvim,] {args})
where {args} is zero or more arguments and {resultType} is the type of a return value. Call the handler from Nvim using the rpcnotify and rpcrequest functions:
:help rpcrequest() :help rpcnotify()
TODO: document eval