v0.0.1
Nvim's vim.ui.input wrapper for denops
Attributes
Includes Deno configuration
Repository
Current version released
a year ago
Dependencies
deno.land/x
Versions
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', [])`,
);
}