Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

📚 Standard module for denops.vim
Go to Latest
function nvim_set_hl
import { nvim_set_hl } from "https://deno.land/x/denops_std@v3.6.0/function/nvim/mod.ts";

Set a highlight group. TODO: ns_id = 0, should modify :highlight namespace TODO val should take update vs reset flag Parameters: ~ {ns_id} number of namespace for this highlight {name} highlight group name, like ErrorMsg {val} highlight definiton map, like |nvim_get_hl_by_name|. in addition the following keys are also recognized: default : don't override existing definition, like hi default ctermfg : sets foreground of cterm color ctermbg : sets background of cterm color cterm : cterm attribute map. sets attributed for cterm colors. similer to hi cterm Note: by default cterm attributes are same as attributes of gui color

Parameters

denops: Denops
ns_id: unknown
name: unknown
val: unknown

Returns

Promise<unknown>