summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-07 20:33:32 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-07 20:33:51 +0200
commit6b15c9b1c27e810ca2395b8f5d77e49a31dd3d47 (patch)
tree335c785b96163eec1277e37cc207b2fd3a6858bd
parent4d430526485fae3574d920c215ded93dcd936f69 (diff)
downloaddotfiles-6b15c9b1c27e810ca2395b8f5d77e49a31dd3d47.tar.gz
dotfiles-6b15c9b1c27e810ca2395b8f5d77e49a31dd3d47.zip
misc(nvim): make floating windows more visible
-rw-r--r--.config/nvim/plugin/40-colors.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/nvim/plugin/40-colors.lua b/.config/nvim/plugin/40-colors.lua
index df2e48c..d5fe545 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 })
- -- 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 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)
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 })