From d3088159bf05a45eeea844450690df1e6f21a512 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 9 Jun 2026 11:36:30 +0200 Subject: Revert "misc(nvim): make floating windows more visible" This reverts commit 6b15c9b1c27e810ca2395b8f5d77e49a31dd3d47. --- .config/nvim/plugin/40-colors.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.config/nvim') diff --git a/.config/nvim/plugin/40-colors.lua b/.config/nvim/plugin/40-colors.lua index d5fe545..df2e48c 100644 --- a/.config/nvim/plugin/40-colors.lua +++ b/.config/nvim/plugin/40-colors.lua @@ -55,9 +55,9 @@ local function adjust_highlight() vim.api.nvim_set_hl(0, "MatchParen", { link = "CurSearch" }) vim.api.nvim_set_hl(0, "WinBarCwd", { fg = solarized_colors.blue, italic = true }) vim.api.nvim_set_hl(0, "WinBarFile", { italic = true }) - local float = vim.o.background == "light" and { fg = solarized_colors.base01, bg = "#e0d2a8" } - or { fg = solarized_colors.base2, bg = "#0d4f63" } - vim.api.nvim_set_hl(0, "NormalFloat", float) + -- Floating windows (LSP hover, etc.) follow the editor background; + -- keep the border's line color but match its bg to the float interior. + vim.api.nvim_set_hl(0, "NormalFloat", { link = "Normal" }) local normal_bg = vim.api.nvim_get_hl(0, { name = "Normal", link = false }).bg local border_fg = vim.api.nvim_get_hl(0, { name = "FloatBorder", link = false }).fg vim.api.nvim_set_hl(0, "FloatBorder", { fg = border_fg, bg = normal_bg }) -- cgit v1.3.1