mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
expand ifs
...i should prob set up a symlink for testing
This commit is contained in:
parent
e4f1736df1
commit
6f16fb1089
1 changed files with 6 additions and 3 deletions
|
|
@ -64,10 +64,13 @@ local variants = {
|
|||
local chosen
|
||||
if variants[options.variant] ~= nil then
|
||||
chosen = variants[options.variant]
|
||||
else
|
||||
chosen = vim.o.background == "light" and variants.dawn or variants[options.dark_variant or "main"]
|
||||
elseif vim.o.background == "light" then
|
||||
chosen = variants.dawn
|
||||
elseif options.dark_variant then
|
||||
chosen = variants[options.dark_variant]
|
||||
else --fallback
|
||||
chosen = variants.main
|
||||
end
|
||||
|
||||
chosen.variants = variants
|
||||
|
||||
return chosen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue