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

denops-nvim-ui-input

Nvim’s vim.ui.input wrapper for denops

Usage

You can use this wrapper with your denops plugin.

Example is shown below.

import { Denops } from "https://deno.land/x/denops_std@v5.0.1/mod.ts";
import { input } from "./input.ts";

export async function main(denops: Denops) {
  denops.dispatcher.input = () => {
    return input(denops, { prompt: "prompt> ", text: "text" });
  };
  await denops.cmd(
    `command! Input echo denops#request('${denops.name}', 'input', [])`,
  );
}