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

x/ddc_vim/deps.ts>fn.diff_filler

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.diff_filler
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { diff_filler } = fn;

Returns the number of filler lines above line {lnum}. These are the lines that were inserted at this point in another diff'ed window. These filler lines are shown in the display but don't exist in the buffer. {lnum} is used like with getline(). Thus "." is the current line, "'m" mark m, etc. Returns 0 if the current window is not in diff mode.

Can also be used as a method:

GetLnum()->diff_filler()

Parameters

denops: Denops
lnum: number | string

Returns

Promise<number>