Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function nvim_select_popupmenu_item
import { nvim_select_popupmenu_item } from "https://deno.land/x/denops_std@v5.0.1/function/nvim/mod.ts";

Selects an item in the completion popupmenu.

If ins-completion is not active this API call is silently ignored. Useful for an external UI using ui-popupmenu to control the popupmenu with the mouse. Can also be used in a mapping; use <cmd> :map-cmd to ensure the mapping doesn't end completion mode.

Parameters: {item} Index (zero-based) of the item to select. Value of -1 selects nothing and restores the original text. {insert} Whether the selection should be inserted in the buffer. {finish} Finish the completion and dismiss the popupmenu. Implies insert. {opts} Optional parameters. Reserved for future use.

Parameters

denops: Denops
item: unknown
insert: unknown
finish: unknown
opts: unknown

Returns

Promise<unknown>