summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-07 14:22:27 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-07 17:26:25 +0200
commiteea25b938fe547d1cd1940ea4d78ee8614ebd0fa (patch)
tree9489fb72846cda30906a840ac9fc0faf1219f4bc /plugin
parent27295cffb093e7efb52b811cffb79500b89f1ac6 (diff)
downloadnvim-config-eea25b938fe547d1cd1940ea4d78ee8614ebd0fa.tar.gz
nvim-config-eea25b938fe547d1cd1940ea4d78ee8614ebd0fa.zip
misc(nvim): edit floating window and popup menu style
Same bg as what's behind and a visible rounded border.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/40-colors.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/40-colors.lua b/plugin/40-colors.lua
index c587767..ee6ef3f 100644
--- a/plugin/40-colors.lua
+++ b/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 })