feat: day style for terminal apps

This commit is contained in:
Folke Lemaitre
2021-05-02 10:43:18 +02:00
parent 7dce3b82dc
commit 7dc6445349
10 changed files with 133 additions and 1 deletions

View File

@@ -43,7 +43,9 @@ function M.setup(config)
red1 = "#db4b4b",
git = { change = "#6183bb", add = "#449dab", delete = "#914c54", conflict = "#bb7a61" },
}
if config.style == "night" or vim.o.background == "light" then colors.bg = "#1a1b26" end
if config.style == "night" or config.style == "day" or vim.o.background == "light" then
colors.bg = "#1a1b26"
end
util.bg = colors.bg
colors.diff = {
@@ -83,6 +85,10 @@ function M.setup(config)
util.color_overrides(colors, config)
if config.transform_colors and (config.style == "day" or vim.o.background == "light") then
return util.light_colors(colors)
end
return colors
end