Skip to main content
Module

x/ddc_vim/deps.ts>fn.setmatches

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.setmatches
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { setmatches } = fn;

Restores a list of matches saved by |getmatches()| for the current window. Returns 0 if successful, otherwise -1. All current matches are cleared before the list is restored. See example for |getmatches()|. If {win} is specified, use the window with this number or window ID instead of the current window. Can also be used as a |method|: GetMatches()->setmatches()

Parameters

denops: Denops
list: unknown
optional
win: unknown

Returns

Promise<unknown>