Skip to main content
Latest
function fn.diff_hlID
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { diff_hlID } = fn;

Returns the highlight ID for diff mode at line {lnum} column {col} (byte index). When the current line does not have a diff change zero is returned. {lnum} is used like with getline(). Thus "." is the current line, "'m" mark m, etc. {col} is 1 for the leftmost column, {lnum} is 1 for the first line. The highlight ID can be used with synIDattr() to obtain syntax information about the highlighting.

Can also be used as a method:

GetLnum()->diff_hlID(col)

Parameters

denops: Denops
lnum: unknown
col: unknown

Returns

Promise<number>