neovim / tree-sitter-vimdoc

Tree-sitter parser for Vim help files
Apache License 2.0
97 stars 13 forks source link

More structured headings #133

Closed clason closed 3 months ago

clason commented 3 months ago

Currently, the (h1) nodes and friends capture the whole "header" structure, including the section separators and any tags. It would be better to separately capture

  1. any separators;
  2. the actual heading
  3. any tags.

This would allow extracting the headings for a better TOC function (and for possible normalization in a linting job) as well as concealing the separators (once we have line anticonceal).