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

x/ddc_vim/deps.ts>op.foldtext

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
variable op.foldtext
import { op } from "https://deno.land/x/ddc_vim@v3.9.1/deps.ts";
const { foldtext } = op;

An expression which is used to specify the text displayed for a closed fold. The context is set to the script where 'foldexpr' was set, script-local items can be accessed. See fold-foldtext for the usage.

The expression will be evaluated in the sandbox if set from a modeline, see sandbox-option. This option cannot be set in a modeline when 'modelineexpr' is off.

It is not allowed to change text or jump to another window while evaluating 'foldtext' textlock.

(default: "foldtext()")

not available when compiled without the +folding feature

type

LocalOption<string>