cleanup solid_vert_split config handling

This commit is contained in:
Michael Chris Lopez
2021-10-20 17:21:23 +08:00
parent 9429f2064e
commit 6c14cd007d
2 changed files with 5 additions and 27 deletions

View File

@@ -89,7 +89,7 @@ local function generate(p, opt)
TabLine { StatusLine }, -- tab pages line, not active tab page label
TabLineFill { StatusLineNC }, -- tab pages line, where there are no labels
TabLineSel { gui = "bold" }, -- tab pages line, active tab page label
VertSplit { fg = LineNr.fg }, -- the column separating vertically split windows
VertSplit { fg = LineNr.fg, bg = opt.solid_vert_split and StatusLineNC.bg or "NONE" }, -- the column separating vertically split windows
Visual { bg = p.fg.de(18).da(68) }, -- Visual mode selection
-- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection".
@@ -392,17 +392,6 @@ local function generate(p, opt)
)
end
if opt.solid_vert_split then
table.insert(
specs,
lush(function()
return {
VertSplit { bg = theme.StatusLineNC.bg, fg = theme.LineNr.fg }, -- the column separating vertically split windows
}
end)
)
end
return lush.merge(specs)
end