From 1d371546b0f53b8b442571daedb83afdc7a201b7 Mon Sep 17 00:00:00 2001 From: Ishan Singh Date: Thu, 27 Aug 2026 12:22:09 +0530 Subject: [PATCH] Apply selection_foreground to the Visual highlight Visual and VisualNOS only set a background, so selected text falls back to the regular foreground. On themes whose selection color is close to the foreground, selected text becomes unreadable. Honor selection_foreground as the fg so themes can control selection text contrast. --- lua/aether/groups/base.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/aether/groups/base.lua b/lua/aether/groups/base.lua index 60f9db0..e73aed9 100644 --- a/lua/aether/groups/base.lua +++ b/lua/aether/groups/base.lua @@ -65,8 +65,8 @@ function M.get(c, opts) TabLineFill = { bg = c.black }, TabLineSel = { fg = c.black, bg = c.blue }, Title = { fg = c.blue, bold = true }, - Visual = { bg = c.bg_visual }, - VisualNOS = { bg = c.bg_visual }, + Visual = { fg = c.selection_foreground, bg = c.bg_visual }, + VisualNOS = { fg = c.selection_foreground, bg = c.bg_visual }, WarningMsg = { fg = c.warning, bold = true }, Whitespace = { fg = c.muted }, WildMenu = { bg = c.bg_visual },