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

x/denops_std/option/nvim/mod.ts>winhighlight

📚 Standard module for denops.vim
Go to Latest
variable winhighlight
import { winhighlight } from "https://deno.land/x/denops_std@v4.2.0/option/nvim/mod.ts";

Window-local highlights. Comma-delimited list of highlight group-name pairs "{hl-from}:{hl-to},..." where each {hl-from} is a highlight-groups item to be overridden by {hl-to} group in the window.

Note: highlight namespaces take precedence over 'winhighlight'. See nvim_win_set_hl_ns() and nvim_set_hl().

Highlights of vertical separators are determined by the window to the left of the separator. The 'tabline' highlight of a tabpage is decided by the last-focused window of the tabpage. Highlights of the popupmenu are determined by the current window. Highlights in the message area cannot be overridden.

Example: show a different color for non-current windows:

set winhighlight=Normal:MyNormal,NormalNC:MyNormalNC

(default empty)

type

{ get(denops: Denops): Promise<string>; set(denops: Denops, value: string): Promise<void>; reset(denops: Denops): Promise<void>; getLocal(denops: Denops): Promise<string>; setLocal(denops: Denops, value: string): Promise<void>; resetLocal(denops: Denops): Promise<void>; }