Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/nvim/mod.ts>nvim_select_popupmenu_item

๐Ÿ“š Standard module for denops.vim
Go to Latest
function nvim_select_popupmenu_item
import { nvim_select_popupmenu_item } from "https://deno.land/x/denops_std@v3.9.0/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 |: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>