mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
Final (verified) Fix rose-pine/neovim#268
This commit is contained in:
parent
b511228bb5
commit
b6fcabc473
2 changed files with 7 additions and 5 deletions
|
|
@ -61,7 +61,7 @@ local variants = {
|
|||
}
|
||||
|
||||
|
||||
local chosen
|
||||
local chosen = {}
|
||||
if variants[options.variant] ~= nil then
|
||||
chosen = variants[options.variant]
|
||||
elseif vim.o.background == "light" then
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
local palette = require("rose-pine.palette")
|
||||
|
||||
local generator = {}
|
||||
|
||||
function generator.alternate(p)
|
||||
|
|
@ -102,6 +100,8 @@ function generator.neutral(p)
|
|||
end
|
||||
|
||||
function generator.inverse(p)
|
||||
-- To prevent cached import during background change
|
||||
local palette = require("rose-pine.palette")
|
||||
if p.base == palette.variants.moon.base then
|
||||
return generator.normal(palette.variants.dawn)
|
||||
elseif p.base == palette.variants.main.base then
|
||||
|
|
@ -112,9 +112,11 @@ function generator.inverse(p)
|
|||
end
|
||||
|
||||
-- function generator.
|
||||
function make()
|
||||
local default = {}
|
||||
local function make()
|
||||
-- To prevent cached import during background change
|
||||
local palette = require("rose-pine.palette")
|
||||
|
||||
local default = {}
|
||||
for t, fn in pairs(generator) do
|
||||
default[t] = fn(palette)
|
||||
for k, v in pairs(palette.variants) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue