refactor: use a better way to generate day style

This commit is contained in:
Folke Lemaitre
2022-09-05 12:16:26 +02:00
parent f2a76d28a2
commit bd4e3d58e2
5 changed files with 12 additions and 110 deletions

View File

@@ -87,8 +87,8 @@ 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)
if config.style == "day" or vim.o.background == "light" then
return util.invert_colors(colors)
end
return colors