diff options
author | Till Bungert <tillbungert@gmail.com> | 2024-01-27 01:38:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 08:38:56 +0800 |
commit | 0892c080d16776366a2fe289f9083cdc532ec56c (patch) | |
tree | ea18dcaebb1c94a7ac641b1181f4c4cdf76f7691 /runtime/lua/vim/treesitter.lua | |
parent | a9df0c5ce6caa5e623c3140a80baf4b3c1ce07db (diff) | |
download | rneovim-0892c080d16776366a2fe289f9083cdc532ec56c.tar.gz rneovim-0892c080d16776366a2fe289f9083cdc532ec56c.tar.bz2 rneovim-0892c080d16776366a2fe289f9083cdc532ec56c.zip |
revert: "feat(treesitter): add foldtext with treesitter highlighting"
This reverts commit 9ce1623 in favor of #20750.
Diffstat (limited to 'runtime/lua/vim/treesitter.lua')
-rw-r--r-- | runtime/lua/vim/treesitter.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/runtime/lua/vim/treesitter.lua b/runtime/lua/vim/treesitter.lua index 3c91be7acf..9d96ab33fa 100644 --- a/runtime/lua/vim/treesitter.lua +++ b/runtime/lua/vim/treesitter.lua @@ -517,16 +517,4 @@ function M.foldexpr(lnum) return require('vim.treesitter._fold').foldexpr(lnum) end ---- Returns the highlighted content of the first line of the fold or falls back to |foldtext()| ---- if no treesitter parser is found. Can be set directly to 'foldtext': ---- ---- ```lua ---- vim.wo.foldtext = 'v:lua.vim.treesitter.foldtext()' ---- ``` ---- ----@return { [1]: string, [2]: string[] }[] | string -function M.foldtext() - return require('vim.treesitter._fold').foldtext() -end - return M |