wip: rely on vim background for setting theme

This commit is contained in:
mvllow 2022-02-05 13:53:16 -06:00
commit 086ba6df57
5 changed files with 260 additions and 264 deletions

View file

@ -1,6 +1,4 @@
local palette = {}
palette = {
local variants = {
main = {
base = '#191724',
surface = '#1f1d2e',
@ -57,6 +55,14 @@ palette = {
},
}
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
vim.tbl_deep_extend('force', palette, { none = 'NONE' })
return palette