mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
use dawn variant if vim background is light (closes #15)
This commit is contained in:
parent
aa1de94e73
commit
fd6219436b
1 changed files with 4 additions and 3 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue