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

@@ -36,19 +36,6 @@ tokyonight.inactive = {
c = { bg = colors.bg_statusline, fg = colors.fg_gutter },
}
if vim.o.background == "light" then
for _, mode in pairs(tokyonight) do
for _, section in pairs(mode) do
if section.bg then
section.bg = util.getColor(section.bg)
end
if section.fg then
section.fg = util.getColor(section.fg)
end
end
end
end
if vim.g.tokyonight_lualine_bold then
for _, mode in pairs(tokyonight) do
mode.a.gui = "bold"