Make.Pval sexp_of_state : state -> Sexplib0.Sexp.tval on_error : [ `Raise | `Call of Vcaml.Vcaml_error.t -> unit ]on_error is invoked when VCaml fails to parse a response from Neovim and when Neovim sends us an asynchronous error event to inform us that it encountered a problem with a message we sent.
val rpc_handlers : state Vcaml_plugin__.Vcaml_plugin_intf.Persistent.Rpc.t listval init_state : unit -> stateval on_startup :
[ `connected ] Vcaml.Client.t ->
state ->
shutdown:(unit -> unit) ->
unit Async.Deferred.Or_error.tIf specified, this Vimscript function will be called after on_startup finishes. It should be used as the indication to Neovim that the plugin is now ready to start serving RPCs - before this it's possible to be in a bad state (the RPCs may not yet be registered or on_startup may not have finished running). It should take a single integer argument, which will be the channel ID.
val on_shutdown :
[ `connected ] Vcaml.Client.t ->
state ->
unit Async.Deferred.Or_error.t