package vcaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val set_buf : window:t -> buffer:Nvim_internal.Buffer.t -> unit Api_call.Or_error.t

This is a low-level function that sets a window's buffer without any side effects. The cursor is not moved and no autocommands are triggered. This means you are bypassing the user's intent to run certain logic when certain events happen. You should be very sure this is what you want before calling this function, and you should likely only ever invoke it on buffers / windows that your plugin owns.

val win_call : window:t -> lua_callback:Nvim_internal.Luaref.t -> Msgpack.t Api_call.Or_error.t

Call a lua function from the given window. If this is actually useful we can create a wrapper similar to wrap_viml_function and expose it in a more type-safe way.

OCaml

Innovation. Community. Security.