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/doc | |
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/doc')
-rw-r--r-- | runtime/doc/news.txt | 5 | ||||
-rw-r--r-- | runtime/doc/treesitter.txt | 10 |
2 files changed, 2 insertions, 13 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index a7c4e8147c..2212b9910b 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -123,7 +123,8 @@ BREAKING CHANGES IN HEAD *news-breaking-dev* The following breaking changes were made during the development cycle to unreleased features on Nvim HEAD. -• ... +• Removed `vim.treesitter.foldtext` as transparent foldtext is now supported + https://github.com/neovim/neovim/pull/20750 • ... ============================================================================== @@ -223,8 +224,6 @@ The following new APIs and features were added. • |vim.treesitter.query.edit()| allows live editing of treesitter queries. • Improved error messages for query parsing. - • |vim.treesitter.foldtext()| applies treesitter highlighting to - foldtext. • |vim.ui.open()| opens URIs using the system default handler (macOS `open`, Windows `explorer`, Linux `xdg-open`, etc.) diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index 956b7d6ae5..0f4462b109 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -652,16 +652,6 @@ foldexpr({lnum}) *vim.treesitter.foldexpr()* Return: ~ (`string`) -foldtext() *vim.treesitter.foldtext()* - 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`) - *vim.treesitter.get_captures_at_cursor()* get_captures_at_cursor({winnr}) Returns a list of highlight capture names under the cursor |