diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-27 08:53:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 08:53:30 -0700 |
commit | 09d76afe84dd5b895e102dcd8df8ce6271bebfef (patch) | |
tree | b6a3f1d213c5ef075139ab863e856f4c71a9b968 /runtime/queries/vimdoc/highlights.scm | |
parent | f55213ce0e2b0053ded8416e8ae922a0e406012f (diff) | |
download | rneovim-09d76afe84dd5b895e102dcd8df8ce6271bebfef.tar.gz rneovim-09d76afe84dd5b895e102dcd8df8ce6271bebfef.tar.bz2 rneovim-09d76afe84dd5b895e102dcd8df8ce6271bebfef.zip |
feat(defaults): pretty :help headings #30544
Problem:
Headings in :help do not stand out visually.
Solution:
Define a non-standard `@markup.heading.1.delimiter` group and
special-case it in `highlight_group.c`.
FUTURE:
This is a cheap workaround until we have #25718 which will enable:
- fully driven by `vimdoc/highlights.scm` instead of using highlight
tricks (`guibg=bg guifg=bg guisp=fg`)
- better support of "cterm" ('notermguicolors')
Diffstat (limited to 'runtime/queries/vimdoc/highlights.scm')
-rw-r--r-- | runtime/queries/vimdoc/highlights.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/queries/vimdoc/highlights.scm b/runtime/queries/vimdoc/highlights.scm index 829a643ae8..1f809c2f60 100644 --- a/runtime/queries/vimdoc/highlights.scm +++ b/runtime/queries/vimdoc/highlights.scm @@ -1,9 +1,9 @@ (h1 - (delimiter) @markup.heading.1 + (delimiter) @markup.heading.1.delimiter (heading) @markup.heading.1) (h2 - (delimiter) @markup.heading.2 + (delimiter) @markup.heading.2.delimiter (heading) @markup.heading.2) (h3 |