refactor: move config into separate file

This commit is contained in:
mvllow 2023-01-08 18:29:24 -05:00
commit 544b809b45
No known key found for this signature in database
4 changed files with 625 additions and 600 deletions

View file

@ -1,3 +1,5 @@
local options = require('rose-pine.config').options
local variants = {
main = {
base = '#191724',
@ -55,12 +57,5 @@ local variants = {
},
}
local palette = {}
if vim.o.background == 'light' then
palette = variants.dawn
else
palette = variants[(vim.g.rose_pine_variant == 'moon' and 'moon') or 'main']
end
return palette
return vim.o.background == 'light' and variants.dawn
or variants[options.dark_variant or 'main']