mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
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')
This commit is contained in:
@@ -301,6 +301,11 @@ static const char *highlight_init_both[] = {
|
||||
"default link @tag Tag",
|
||||
"default link @tag.builtin Special",
|
||||
|
||||
// :help
|
||||
// Higlight "===" and "---" heading delimiters specially.
|
||||
"default @markup.heading.1.delimiter.vimdoc guibg=bg guifg=bg guisp=fg gui=underdouble,nocombine ctermbg=NONE ctermfg=NONE cterm=underdouble,nocombine",
|
||||
"default @markup.heading.2.delimiter.vimdoc guibg=bg guifg=bg guisp=fg gui=underline,nocombine ctermbg=NONE ctermfg=NONE cterm=underline,nocombine",
|
||||
|
||||
// LSP semantic tokens
|
||||
"default link @lsp.type.class @type",
|
||||
"default link @lsp.type.comment @comment",
|
||||
|
Reference in New Issue
Block a user