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

@@ -1,6 +1,5 @@
local config = require("tokyonight.config")
local colors = require("tokyonight.colors").setup(config)
local util = require("tokyonight.util")
local tokyonight = {}
@@ -37,15 +36,4 @@ tokyonight.tabline = {
tabsel = { { colors.blue, colors.fg_gutter }, { colors.dark3, colors.bg } },
}
if vim.o.background == "light" then
for _, mode in pairs(tokyonight) do
for _, section in pairs(mode) do
for _, subsection in pairs(section) do
subsection[1] = util.getColor(subsection[1])
subsection[2] = util.getColor(subsection[2])
end
end
end
end
return tokyonight