mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
update config logic
This commit is contained in:
parent
7a44c1fbec
commit
1a3d0c279e
1 changed files with 19 additions and 6 deletions
|
|
@ -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 },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue