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

x/ddc_vim/deps.ts>fn.matcharg

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

Selects the {nr} match item, as set with a :match, :2match or :3match command. Return a List with two elements: The name of the highlight group used The pattern used. When {nr} is not 1, 2 or 3 returns an empty List. When there is no match item set returns ['', '']. This is useful to save and restore a :match. Highlighting matches using the :match commands are limited to three matches. matchadd() does not have this limitation.

Can also be used as a method:

GetMatch()->matcharg()

Parameters

denops: Denops
nr: unknown

Returns

Promise<unknown[]>