feat(help): use treesitter for table of contents

Problem: Creating the table of contents for `gO` is complicated.

Solution: Use treesitter instead.
This commit is contained in:
Christian Clason
2024-06-08 10:49:15 +02:00
parent 105a9e3dcf
commit 6592873f77
4 changed files with 44 additions and 74 deletions

View File

@@ -188,7 +188,7 @@ Local additions ~
*local-additions*
------------------------------------------------------------------------------
*bars* Bars example
Bars example *bars*
Now that you've jumped here with CTRL-] or a double mouse click, you can use
CTRL-T, CTRL-O, g<RightMouse>, or <C-RightMouse> to go back to where you were.
@@ -200,5 +200,5 @@ You can use CTRL-] on any word (even if it is not within "|") and Nvim will
try to find help for it. Especially for options in single quotes, e.g.
'hlsearch'.
------------------------------------------------------------------------------
vim:tw=78:isk=!-~,^*,^\|,^\":ts=8:noet:ft=help:norl: