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.hlID

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