neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a7177e34c318b0ede39b1b3ce06a3d5d9d0704f8
parent a512af0d7401b60ed0dddc2520f2c569508bbc38
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Sat, 14 Feb 2026 09:17:08 -0500

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.
Diffstat:
Msrc/nvim/highlight_group.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c @@ -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",