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

x/ddu_vim/deps.ts>fn.foldtextresult

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

Returns the text that is displayed for the closed fold at line {lnum}. Evaluates 'foldtext' in the appropriate context. When there is no closed fold at {lnum} an empty string is returned. {lnum} is used like with |getline()|. Thus "." is the current line, "'m" mark m, etc. Useful when exporting folded text, e.g., to HTML. {not available when compiled without the |+folding| feature} Can also be used as a |method|: GetLnum()->foldtextresult()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<unknown>