create theme generator to remove repeat code

This commit is contained in:
VoxelPrismatic 2024-04-29 14:02:18 -05:00
commit de6ac3cc1c
9 changed files with 88 additions and 247 deletions

View file

@ -1,26 +1,4 @@
local p = require("rose-pine.variants")
local generator = require("lualine.generate")
return {
normal = {
a = { bg = p.surface, fg = p.rose, gui = "bold" },
b = { bg = p.surface, fg = p.text },
c = { bg = p.surface, fg = p.subtle, gui = "italic" },
},
insert = {
a = { bg = p.surface, fg = p.foam, gui = "bold" },
},
visual = {
a = { bg = p.surface, fg = p.iris, gui = "bold" },
},
replace = {
a = { bg = p.surface, fg = p.pine, gui = "bold" },
},
command = {
a = { bg = p.surface, fg = p.love, gui = "bold" },
},
inactive = {
a = { bg = p.base, fg = p.subtle, gui = "bold" },
b = { bg = p.base, fg = p.subtle },
c = { bg = p.base, fg = p.subtle, gui = "italic" },
},
}
return generator.alternate(p)