import { type Denops } from "https://deno.land/x/denops_std@v3.8.1/mod.ts";
Denpos is a facade instance visible from each denops plugins.
Methods
Call arbitrary functions of Vim/Neovim sequentially without redraw and return the results.
It throw a BatchError when one of a function fails. The results
attribute
of the error instance holds succeeded results of functions prior to the
error.
cmd(cmd: string, ctx?: Context): Promise<void>
Execute an arbitrary command of Vim/Neovim under a given context.
eval(expr: string, ctx?: Context): Promise<unknown>
Evaluate an arbitrary expression of Vim/Neovim under a given context and return the result.