package vcaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Log_level : sig ... end
val notify : Log_level.t -> string -> unit Api_call.Or_error.t
val get_display_width : text:string -> int Api_call.Or_error.t
val set_current_dir : dir:string -> unit Api_call.Or_error.t
val get_current_line : string Api_call.Or_error.t
val set_current_line : line:string -> unit Api_call.Or_error.t
val del_current_line : unit Api_call.Or_error.t
val del_var : name:string -> unit Api_call.Or_error.t
val get_vvar : name:string -> type_:'a Type.t -> 'a Api_call.Or_error.t
val set_vvar : name:string -> type_:'a Type.t -> value:'a -> unit Api_call.Or_error.t
val get_option : name:string -> type_:'a Type.t -> 'a Api_call.Or_error.t
val set_option : name:string -> type_:'a Type.t -> value:'a -> unit Api_call.Or_error.t
val list_tabpages : Tabpage.t list Api_call.Or_error.t
val get_current_tabpage : Tabpage.t Api_call.Or_error.t
val set_current_tabpage : tabpage:Tabpage.t -> unit Api_call.Or_error.t
val subscribe : event:string -> unit Api_call.Or_error.t

Neovim supports both signal and broadcast asynchronous notifications. In signal mode a channel is given to rpcnotify and the channel will receive the event regardless its subscriptions. In broadcast mode (when the channel argument is 0) all channels that have subscribed to event will receive the notification.

val unsubscribe : event:string -> unit Api_call.Or_error.t
val get_user_defined_commands : Command.t Core.String.Map.t Api_call.Or_error.t
val put : string list -> how:[ `Blockwise | `Linewise | `Charwise ] -> where:[ `Before_cursor | `After_cursor ] -> place_cursor:[ `At_start_of_text | `At_end_of_text ] -> unit Api_call.Or_error.t
val get_hl_id_by_name : name:string -> int Api_call.Or_error.t
val nvim_find_runtime_file_matching : pattern:string -> string option Api_call.Or_error.t
val nvim_all_runtime_files_matching : pattern:string -> string list Api_call.Or_error.t
val get_option_info : name:string -> Vcaml__.Option_info.packed Api_call.Or_error.t
val get_all_options_info : Vcaml__.Option_info.packed Core.String.Map.t Api_call.Or_error.t
val chan_send : channel_id:int -> string -> unit Api_call.Or_error.t

Send raw bytes to channel. If the channel is a terminal and you want to display multiple lines you will need to follow your newlines with carriage returns. See also Buffer.Untested.open_term.

module Expert : sig ... end