update config logic

This commit is contained in:
mvllow 2022-02-03 19:35:16 -06:00
commit f26b1f795c

View file

@ -9,12 +9,25 @@ if config.disable_italics == true then
maybe_italic = nil maybe_italic = nil
end end
local background = config.disable_background and palette.base or palette.none local background = palette.base
local float_background = config.disable_float_background and palette.surface or palette.none if config.disable_background then
local inactive_background = config.inactive_background background = palette.none
and util.blend('#000000', palette.base, palette.opacity) end
or palette.none
local vert_split_background = config.bold_vertical_split_line and palette.overlay or palette.none local float_background = palette.surface
if config.disable_float_background then
float_background = palette.none
end
local inactive_background = palette.none
if config.inactive_background then
inactive_background = util.blend('#000000', palette.base, palette.opacity)
end
local vert_split_background = palette.none
if config.bold_vertical_split_line then
vert_split_background = palette.overlay
end
local theme = { local theme = {
ColorColumn = { bg = palette.highlight_high }, ColorColumn = { bg = palette.highlight_high },