diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-09 11:36:30 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-09 11:36:30 +0200 |
| commit | d3088159bf05a45eeea844450690df1e6f21a512 (patch) | |
| tree | 7278de5d76cfdd5cbca2c83ee4942bb609187808 /.config/nvim | |
| parent | 1cfd9d4d61d05e65a23892433a4bd02d147a50e8 (diff) | |
| download | dotfiles-d3088159bf05a45eeea844450690df1e6f21a512.tar.gz dotfiles-d3088159bf05a45eeea844450690df1e6f21a512.zip | |
Revert "misc(nvim): make floating windows more visible"
This reverts commit 6b15c9b1c27e810ca2395b8f5d77e49a31dd3d47.
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/plugin/40-colors.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 }) |
