aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-22 10:13:35 +0000
committerGitHub <noreply@github.com>2024-01-22 10:13:35 +0000
commit1233ac467de7504b277425988ef9be7f8d3a9626 (patch)
tree0f90618b9a542e3bc859cf03079d8149d10e77e1 /runtime/lua/vim/_meta/options.lua
parent21b36c7d7fa351544253316c606651e9ce925b29 (diff)
downloadrneovim-1233ac467de7504b277425988ef9be7f8d3a9626.tar.gz
rneovim-1233ac467de7504b277425988ef9be7f8d3a9626.tar.bz2
rneovim-1233ac467de7504b277425988ef9be7f8d3a9626.zip
feat(fold): transparent foldtext
'foldtext' can be set to an empty string to disable and render the line with: - extmark highlight - syntax highlighting - search highlighting - no line wrapping - spelling - conceal - inline virtual text - respects `fillchars:fold` Currently normal virtual text is not displayed Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index c9e2e302dc..60339f57d8 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -2473,6 +2473,9 @@ vim.go.fdo = vim.go.foldopen
--- It is not allowed to change text or jump to another window while
--- evaluating 'foldtext' `textlock`.
---
+--- When set to an empty string, foldtext is disabled, and the line
+--- is displayed normally with highlighting and no line wrapping.
+---
--- @type string
vim.o.foldtext = "foldtext()"
vim.o.fdt = vim.o.foldtext