Skip to main content
Module

x/ddc_vim/deps.ts>fn.diff_hlID

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.diff_hlID
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/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>