feat: new themes for lualine (#267)

This commit is contained in:
PRIZ ;] 2024-05-10 12:22:41 -05:00 committed by GitHub
commit b24b48d35b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 140 additions and 68 deletions

View file

@ -1,4 +1,5 @@
local options = require("rose-pine.config").options
local variants = {
main = {
_nc = "#16141f",
@ -59,8 +60,14 @@ local variants = {
},
}
local chosen
if variants[options.variant] ~= nil then
return variants[options.variant]
chosen = variants[options.variant]
else
chosen = vim.o.background == "light" and variants.dawn or variants[options.dark_variant or "main"]
end
return vim.o.background == "light" and variants.dawn or variants[options.dark_variant or "main"]
chosen.variants = variants
return chosen