mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
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:
parent
7d1b5c7dcd
commit
96ff3993a6
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue