fix(highlight): link HLF_8 to something more prominent #34910

Problem:
HLF_8 is used by :intro and :map. And none of the other HLF_x things
use the other Special groups. So we have a darkgray highlight that's
very common, and not easy to read.

Darkgray makes sense for "Conceal", "non-printing chars", etc. But not
for keycodes or similar common elements.

Solution:
Link SpecialKey to Special.
This commit is contained in:
Justin M. Keyes
2026-02-14 09:17:08 -05:00
committed by GitHub
parent a512af0d74
commit a7177e34c3

View File

@@ -215,6 +215,8 @@ static const char *highlight_init_both[] = {
"default link SpecialChar Special",
"default link SpecialComment Special",
"default link Debug Special",
// Used by HLF_8 (very common). None of the HLF_* things use the other Special* groups.
"default link SpecialKey Special",
"default link Ignore Normal",
// Built-in LSP
@@ -390,7 +392,6 @@ static const char *highlight_init_light[] = {
"Removed guifg=NvimDarkRed ctermfg=1",
"Search guifg=NvimDarkGrey1 guibg=NvimLightYellow ctermfg=15 ctermbg=3",
"SignColumn guifg=NvimLightGrey4",
"SpecialKey guifg=NvimLightGrey4",
"SpellBad guisp=NvimDarkRed gui=undercurl cterm=undercurl",
"SpellCap guisp=NvimDarkYellow gui=undercurl cterm=undercurl",
"SpellLocal guisp=NvimDarkGreen gui=undercurl cterm=undercurl",
@@ -475,7 +476,6 @@ static const char *highlight_init_dark[] = {
"Removed guifg=NvimLightRed ctermfg=9",
"Search guifg=NvimLightGrey1 guibg=NvimDarkYellow ctermfg=0 ctermbg=11",
"SignColumn guifg=NvimDarkGrey4",
"SpecialKey guifg=NvimDarkGrey4",
"SpellBad guisp=NvimLightRed gui=undercurl cterm=undercurl",
"SpellCap guisp=NvimLightYellow gui=undercurl cterm=undercurl",
"SpellLocal guisp=NvimLightGreen gui=undercurl cterm=undercurl",