feat: add options light_style (#231)

* feat: add options light_style

* add default and docs for light_style
This commit is contained in:
Loong Wang
2022-10-03 00:25:44 +08:00
committed by GitHub
parent 4092905fc5
commit df281cc0f1
3 changed files with 4 additions and 1 deletions

View File

@@ -99,7 +99,8 @@ function M.setup(opts)
opts = opts or {}
local config = require("tokyonight.config")
local palette = M[config.options.style] or {}
local style = config.is_day() and config.options.light_style or config.options.style
local palette = M[style] or {}
if type(palette) == "function" then
palette = palette()
end