From 279b06d47a2105a405518e2aa3a484e48dfb7b1b Mon Sep 17 00:00:00 2001 From: not Date: Mon, 8 Jan 2024 09:43:57 -0600 Subject: [PATCH] fix: mismatched WinSeparator background (#208) * fix: mismatched WinSeparator background * feat: use border group for bolded vert split * fix: Pmenu fg typo --- lua/rose-pine.lua | 6 +++--- lua/rose-pine/config.lua | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lua/rose-pine.lua b/lua/rose-pine.lua index 795b9a1..7ea68a4 100644 --- a/lua/rose-pine.lua +++ b/lua/rose-pine.lua @@ -62,7 +62,7 @@ local function set_highlights() PmenuKind = { fg = palette.foam, bg = groups.panel }, PmenuKindSel = { fg = palette.subtle, bg = palette.overlay }, PmenuSbar = { bg = groups.panel }, - PmenuSel = { fg = palette.title, bg = palette.overlay }, + PmenuSel = { fg = palette.text, bg = palette.overlay }, PmenuThumb = { bg = palette.muted }, Question = { fg = palette.gold }, -- QuickFixLink = {}, @@ -86,13 +86,13 @@ local function set_highlights() TabLineFill = { bg = groups.panel }, TabLineSel = { fg = palette.text, bg = palette.overlay, bold = styles.bold }, Title = make_title(), - VertSplit = make_border(), + VertSplit = { fg = groups.border }, Visual = { bg = palette.highlight_med }, -- VisualNOS = {}, WarningMsg = { fg = groups.warn, bold = styles.bold }, -- Whitespace = {}, WildMenu = { link = "IncSearch" }, - WinSeparator = make_border(), + WinSeparator = { fg = groups.border }, DiagnosticError = { fg = groups.error }, DiagnosticHint = { fg = groups.hint }, diff --git a/lua/rose-pine/config.lua b/lua/rose-pine/config.lua index d5ef0d8..beed052 100644 --- a/lua/rose-pine/config.lua +++ b/lua/rose-pine/config.lua @@ -98,7 +98,9 @@ config.options = { local function migrate(options) if options.bold_vert_split then - options.highlight_groups["VertSplit"] = { fg = "muted", bg = "muted" } + local border = options.groups.border or "muted" + options.highlight_groups["VertSplit"] = { fg = border, bg = border } + options.highlight_groups["WinSeparator"] = { fg = border, bg = border } end if options.disable_float_background then