fix: set background=light if variant is "dawn" (#349)

* fix: set `background=light` if variant is "dawn"

This change might fix https://github.com/rose-pine/neovim/issues/321

* Update lua/rose-pine.lua

* fix: restrict variants that override `&background`

The other variant params are considered as if "auto"
This commit is contained in:
aileot 2025-03-31 15:27:19 +00:00 committed by GitHub
commit 96ff3993a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1182,6 +1182,12 @@ function M.colorscheme(variant)
end
vim.g.colors_name = "rose-pine"
if variant == "dawn" then
vim.o.background = "light"
elseif variant == "main" or variant == "moon" then
vim.o.background = "dark"
end
set_highlights()
end