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

x/ddc_vim/deps.ts>fn.complete_add

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

Add {expr} to the list of matches. Only to be used by the function specified with the 'completefunc' option. Returns 0 for failure (empty string or out of memory), 1 when the match was added, 2 when the match was already in the list. See complete-functions for an explanation of {expr}. It is the same as one item in the list that 'omnifunc' would return.

Can also be used as a method:

GetMoreMatches()->complete_add()

Parameters

denops: Denops
expr: unknown

Returns

Promise<number>