Skip to main content
Module

x/denops_std/function/nvim/mod.ts>nvim_get_hl

📚 Standard module for denops.vim
Latest
function nvim_get_hl
import { nvim_get_hl } from "https://deno.land/x/denops_std@v6.5.0/function/nvim/mod.ts";

Gets all or specific highlight groups in a namespace.

Parameters:

  • {ns_id} Get highlight groups for namespace ns_id nvim_get_namespaces(). Use 0 to get global highlight groups :highlight.
  • {opts} Options dict: - name: (string) Get a highlight definition by name. - id: (integer) Get a highlight definition by id. - link: (boolean, default true) Show linked group name instead of effective definition :hi-link.

Return: Highlight groups as a map from group name to a highlight definition map as in nvim_set_hl(), or only a single highlight definition map if requested by name or id.

Note: When the link attribute is defined in the highlight definition map, other attributes will not be taking effect (see :hi-link).

Parameters

denops: Denops
ns_id: unknown
opts: unknown

Returns

Promise<unknown>