Skip to main content
Module

x/ddc_vim/deps.ts>fn.hlID

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

The result is a Number, which is the ID of the highlight group with name {name}. When the highlight group doesn't exist, zero is returned. This can be used to retrieve information about the highlight group. For example, to get the background color of the "Comment" group: :echo synIDattr(synIDtrans(hlID("Comment")), "bg") Obsolete name: highlightID(). Can also be used as a |method|: GetName()->hlID()

Parameters

denops: Denops
name: unknown

Returns

Promise<unknown>