feat: callbacks to easily override (or add) colors and highlights

This commit is contained in:
Folke Lemaitre
2022-09-05 20:32:31 +02:00
parent ec13e0f44f
commit 12649d34fe
5 changed files with 71 additions and 91 deletions

View File

@@ -1,4 +1,5 @@
local colors = require("tokyonight.colors").setup({ transform = true })
local config = require("tokyonight.config").options
local tokyonight = {}
@@ -34,7 +35,7 @@ tokyonight.inactive = {
c = { bg = colors.bg_statusline, fg = colors.fg_gutter },
}
if vim.g.tokyonight_lualine_bold then
if config.lualine_bold then
for _, mode in pairs(tokyonight) do
mode.a.gui = "bold"
end