mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
breaking: move to lua config (#64)
Co-authored-by: fvrests <fvrests@icloud.com>
This commit is contained in:
parent
c207a62f52
commit
317a7c8473
8 changed files with 648 additions and 683 deletions
|
|
@ -55,12 +55,12 @@ local variants = {
|
|||
},
|
||||
}
|
||||
|
||||
local palette = variants.main
|
||||
local palette = {}
|
||||
|
||||
if string.match(vim.g.rose_pine_variant or '', 'moon') then
|
||||
palette = variants.moon
|
||||
elseif string.match(vim.g.rose_pine_variant or '', 'dawn') then
|
||||
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' })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue