mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
wip: rely on vim background for setting theme
This commit is contained in:
parent
940ffe52a5
commit
086ba6df57
5 changed files with 260 additions and 264 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue