Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.wildmenumode

Dark deno-powered completion framework for neovim/Vim
Very Popular
Go to Latest
function fn.wildmenumode
import { fn } from "https://deno.land/x/ddc_vim@v4.0.0/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>