Vcaml_debug.Toplevel_clientThis is a barebones implementation of Msgpack RPC for Neovim to facilitate debugging problems in the VCaml library by seeing if the problem is in VCaml or Neovim.
val open_ : string -> tOpen a connection to a running Neovim instance. You can find the name by checking v:servername or $NVIM.
val channel : t -> intGet the channel for this connection. Once you have this you can issue rpcrequest and rpcnotify calls from your running Neovim instance to OCaml.
val respond : t -> msgid:int -> (Msgpack.t, Msgpack.t) Core.Result.t -> unitRespond to an rpcrequest. The msgid must be the same as the one Neovim sent.
Receive a message from Neovim.
Read all available messages from Neovim. Useful for cases where you expect many messages, e.g., for event subscriptions.
val close : t -> unitClose the connection.
val verbose : t -> bool -> unitEnable / disable printing messages as they are sent and received.
val pp : Core.Formatter.t -> Msgpack.t -> unit