fix: mismatched WinSeparator background (#208)

* fix: mismatched WinSeparator background

* feat: use border group for bolded vert split

* fix: Pmenu fg typo
This commit is contained in:
not 2024-01-08 09:43:57 -06:00 committed by GitHub
commit 279b06d47a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -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 },

View file

@ -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