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

x/ddu_vim/deps.ts>fn.foldclosed

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.foldclosed
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { foldclosed } = fn;

The result is a Number. If the line {lnum} is in a closed fold, the result is the number of the first line in that fold. If the line {lnum} is not in a closed fold, -1 is returned. {lnum} is used like with |getline()|. Thus "." is the current line, "'m" mark m, etc. Can also be used as a |method|: GetLnum()->foldclosed()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<unknown>