diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 14:22:27 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 17:26:25 +0200 |
| commit | 2f51c28a3009119c202e73272427b72ebd3eb9cb (patch) | |
| tree | 994f269da7b059457a75bbb428bd5f2e4f9f3aa0 /.config/nvim/plugin | |
| parent | 80fd7dcdc31160bc4a2c0ef48cd8bf609d5922f3 (diff) | |
| download | dotfiles-2f51c28a3009119c202e73272427b72ebd3eb9cb.tar.gz dotfiles-2f51c28a3009119c202e73272427b72ebd3eb9cb.zip | |
misc(nvim): edit floating window and popup menu style
Same bg as what's behind and a visible rounded border.
Diffstat (limited to '.config/nvim/plugin')
| -rw-r--r-- | .config/nvim/plugin/40-colors.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/nvim/plugin/40-colors.lua b/.config/nvim/plugin/40-colors.lua index c587767..ee6ef3f 100644 --- a/.config/nvim/plugin/40-colors.lua +++ b/.config/nvim/plugin/40-colors.lua @@ -55,6 +55,15 @@ 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 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 }) + -- Popup menu (completion, etc.): match the editor background like floats do. + vim.api.nvim_set_hl(0, "Pmenu", { fg = solarized_colors.base0, bg = normal_bg }) + vim.api.nvim_set_hl(0, "PmenuSbar", { bg = normal_bg }) vim.api.nvim_set_hl(0, "TabLine", { fg = solarized_colors.yellow, bold = true }) if vim.o.background == "light" then vim.api.nvim_set_hl(0, "TabLineSel", { bg = "#edffd5", fg = solarized_colors.yellow, bold = true }) |
