From 2e5b560482fb76342387e7183283efe9d431f114 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 22 Feb 2025 13:07:21 +0100 Subject: feat(treesitter): table of contents for checkhealth, markdown (#32282) Problem: It's difficult to navigate large structured text files (vim help, checkhealth, Markdown). Solution: Support `gO` for table of contents and `]]`/`[[` for moving between headings for all these filetypes using treesitter queries. Refactor: colorization of highlight groups is moved to the `help` ftplugin while headings-related functionality is implemented in a private `vim.treesitter` module for possible future use for other filetypes. --- runtime/doc/news.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/doc') diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 5c7354e3b5..05d14600f8 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -265,6 +265,9 @@ EDITOR to a literal "~" directory. • |hl-ComplMatchIns| shows matched text of the currently inserted completion. • |hl-PmenuMatch| and |hl-PmenuMatchSel| show matched text in completion popup. +• |gO| now works in `help`, `checkhealth`, and `markdown` buffers. +• Jump between sections in `help` and `checkhealth` buffers with `[[` and + `]]`. EVENTS -- cgit