Skip to main content
Module

x/denops_std/helper/input.ts>input

📚 Standard module for denops.vim
Go to Latest
function input
import { input } from "https://deno.land/x/denops_std@v3.12.1/helper/input.ts";

Open a prompt to get user input.

It is a wrapper function of Vim/Neovim's native input() function. This version has the following advantages

  • Developers can use TypeScript custom completion function
  • It returns null instead when user cancelled by or
  • It automatically guard input when inputsave option is specified

Parameters

denops: Denops
optional
options: InputOptions = [UNSUPPORTED]

Returns

Promise<string | null>