diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 20:33:32 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 20:33:51 +0200 |
| commit | 726ecec2c16f8743a30825e22806fb88b9fa3689 (patch) | |
| tree | 57eae07336fe9755dab3381ec82bdd5ef98fd15c /plugin | |
| parent | 3f13b53ba92c82368c4aa08e75be2a90f5e16ab0 (diff) | |
| download | nvim-config-726ecec2c16f8743a30825e22806fb88b9fa3689.tar.gz nvim-config-726ecec2c16f8743a30825e22806fb88b9fa3689.zip | |
misc(nvim): make floating windows more visible
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/40-colors.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/40-colors.lua b/plugin/40-colors.lua index df2e48c..d5fe545 100644 --- a/plugin/40-colors.lua +++ b/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 }) |
