mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
refactor: move config into separate file
This commit is contained in:
parent
93c760b393
commit
544b809b45
4 changed files with 625 additions and 600 deletions
|
|
@ -1,3 +1,5 @@
|
|||
local options = require('rose-pine.config').options
|
||||
|
||||
local variants = {
|
||||
main = {
|
||||
base = '#191724',
|
||||
|
|
@ -55,12 +57,5 @@ local variants = {
|
|||
},
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
return palette
|
||||
return vim.o.background == 'light' and variants.dawn
|
||||
or variants[options.dark_variant or 'main']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue