Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>Denops

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
interface Denops
import { type Denops } from "https://deno.land/x/ddc_vim@v0.0.12/deps.ts";

Denpos is a facade instance visible from each denops plugins.

Properties

readonly
name: string

Denops instance name which uses to communicate with vim.

readonly
meta: Meta

Environment meta information.

dispatcher: Dispatcher

User defined API name and method map which is used to dispatch API request

Methods

call(fn: string, ...args: unknown[]): Promise<unknown>

Call an arbitrary function of Vim/Neovim and return the result

batch(...calls: [string, ...unknown[]][]): Promise<unknown[]>

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 successed 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.

dispatch(
name: string,
fn: string,
...args: unknown[],
): Promise<unknown>

Dispatch an arbitrary function of an arbitrary plugin and return the result.