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

x/ddc_vim/deps.ts>fn.wildmenumode

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.wildmenumode
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { wildmenumode } = fn;

Returns TRUE when the wildmenu is active and FALSE otherwise. See 'wildmenu' and 'wildmode'. This can be used in mappings to handle the 'wildcharm' option gracefully. (Makes only sense with mapmode-c mappings).

For example to make <c-j> work like <down> in wildmode, use:

:cnoremap <expr> <C-j> wildmenumode() ? "\<Down>\<Tab>" : "\<c-j>"

(Note, this needs the 'wildcharm' option set appropriately).

Returns

Promise<number>