Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>fn.diff_hlID

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