use dawn variant if vim background is light (closes #15)

This commit is contained in:
mvllow 2021-08-20 11:08:04 -05:00
commit fd6219436b

View file

@ -31,12 +31,13 @@ function util.load()
vim.o.termguicolors = true
vim.g.colors_name = 'rose-pine'
if vim.o.background == 'light' then
vim.g.rose_pine_variant = 'dawn'
elseif
vim.g.rose_pine_variant == 'dawn'
or vim.g.rose_pine_variant == 'rose-pine-dawn'
then
vim.opt.background = 'light'
else
vim.opt.background = 'dark'
vim.o.background = 'light'
end
local theme = require('rose-pine.theme')