package vcaml

  1. Overview
  2. Docs
val line_count : buffer:t -> int Core.Or_error.t Api_call.t
val get_var : buffer:t -> name:string -> Msgpack.t Core.Or_error.t Api_call.t
val get_changedtick : buffer:t -> int Core.Or_error.t Api_call.t
val get_keymap : buffer:t -> mode:string -> Keymap.t list Core.Or_error.t Api_call.t
val get_commands : ?opts:(Msgpack.t * Msgpack.t) list -> buffer:t -> Nvim_command.t Core.String.Map.t Core.Or_error.t Api_call.t

Gets a map of buffer-local user-commands.

The opts parameter is not used by the current version of neovim, but may be used in the future.

val set_var : buffer:t -> name:string -> value:Msgpack.t -> unit Core.Or_error.t Api_call.t
val del_var : buffer:t -> name:string -> unit Core.Or_error.t Api_call.t
val get_option : buffer:t -> name:string -> Msgpack.t Core.Or_error.t Api_call.t
val set_option : buffer:t -> name:string -> value:Msgpack.t -> unit Core.Or_error.t Api_call.t
val set_name : buffer:t -> name:string -> unit Core.Or_error.t Api_call.t
val is_valid : buffer:t -> bool Core.Or_error.t Api_call.t
val get_mark : buffer:t -> name:string -> mark Core.Or_error.t Api_call.t
val find_by_name_or_create : name:string -> t Core.Or_error.t Api_call.t
val set_scratch : buffer:t -> unit Api_call.t
val add_highlight : buffer:t -> ns_id:int -> hl_group:string -> line:int -> col_start:int -> col_end:int -> int Core.Or_error.t Api_call.t
val clear_highlight : buffer:t -> ns_id:int -> line_start:int -> line_end:int -> unit Core.Or_error.t Api_call.t
OCaml

Innovation. Community. Security.