From f6de99d028c27337cdbac2e1d1c1b954e9badc48 Mon Sep 17 00:00:00 2001 From: not_compiled Date: Tue, 4 Aug 2026 23:13:22 +0530 Subject: [PATCH] fix(highlight): make Ignore hidden by default #41115 Problem: Ignore is linked to Normal by default, making the text visible instead of hidden. Solution: Replace the default link with an explicit highlight definition using ctermfg=0 guifg=bg. --- src/nvim/highlight_group.c | 2 +- test/functional/ui/cursor_spec.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c index 558a152d39..7f1b3f8e1e 100644 --- a/src/nvim/highlight_group.c +++ b/src/nvim/highlight_group.c @@ -145,6 +145,7 @@ static const char e_missing_argument_str[] static const char *highlight_init_both[] = { "Cursor guifg=bg guibg=fg", "CursorLineNr gui=bold cterm=bold", + "Ignore guifg=bg ctermfg=0", "PmenuMatch gui=bold cterm=bold", "PmenuMatchSel gui=bold cterm=bold", "PmenuSel gui=reverse cterm=reverse,underline blend=0", @@ -219,7 +220,6 @@ static const char *highlight_init_both[] = { // Used by HLF_8 (very common). None of the HLF_* things use the other Special* groups. "default link SpecialKey Special", "default link Dimmed Comment", - "default link Ignore Normal", // Built-in LSP "default link LspCodeLens NonText", diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua index 1220121093..6d28af8cb5 100644 --- a/test/functional/ui/cursor_spec.lua +++ b/test/functional/ui/cursor_spec.lua @@ -263,7 +263,7 @@ describe('ui/cursor', function() m.attr = { background = Screen.colors.DarkGray } end if m.id_lm then - m.id_lm = 78 + m.id_lm = 79 m.attr_lm = {} end end