lualine relative to base
This commit is contained in:
@ -4,64 +4,62 @@ local hsl = lush.hsl
|
||||
local colors;
|
||||
|
||||
if vim.o.background == "dark" then
|
||||
local c = require('lupancolors.lupandark').colors
|
||||
colors = {
|
||||
bg = hsl(210, 15, 20).hex,
|
||||
fg = hsl(210, 30, 85).hex,
|
||||
linebg = hsl(210, 15, 40).hex,
|
||||
linefg = hsl(210, 30, 85).hex,
|
||||
black = hsl(210, 15, 5).hex,
|
||||
normal = hsl(210, 50, 75).hex,
|
||||
insert = hsl(130, 50, 75).hex,
|
||||
visual = hsl(210, 30, 30).hex,
|
||||
replace = hsl(10, 50, 75).hex,
|
||||
command = hsl(50, 50, 75).hex,
|
||||
gray = hsl(210, 10, 60).hex,
|
||||
bg = c.base.da(70).hex,
|
||||
normal = c.blue.hex,
|
||||
insert = c.green.hex,
|
||||
visual = c.purple.hex,
|
||||
replace = c.red.hex,
|
||||
command = c.yellow.hex,
|
||||
b = { bg = c.base.da(70).hex, fg = c.base.hex },
|
||||
c = { bg = c.base.de(50).da(50).hex, fg = c.base.de(50).hex },
|
||||
inactive = { bg = c.base.de(50).da(70).hex, fg = c.base.de(50).hex },
|
||||
}
|
||||
else
|
||||
local c = require('lupancolors.lupanlight').colors
|
||||
colors = {
|
||||
bg = hsl(210, 15, 20).hex,
|
||||
fg = hsl(210, 30, 85).hex,
|
||||
linebg = hsl(210, 15, 80).hex,
|
||||
linefg = hsl(210, 15, 20).hex,
|
||||
black = hsl(210, 15, 5).hex,
|
||||
normal = hsl(210, 50, 75).hex,
|
||||
insert = hsl(130, 50, 75).hex,
|
||||
visual = hsl(210, 30, 30).hex,
|
||||
replace = hsl(10, 50, 75).hex,
|
||||
command = hsl(50, 50, 75).hex,
|
||||
gray = hsl(210, 10, 60).hex,
|
||||
bg = c.base.li(80).hex,
|
||||
normal = c.blue.hex,
|
||||
insert = c.green.hex,
|
||||
visual = c.purple.hex,
|
||||
replace = c.red.hex,
|
||||
command = c.yellow.hex,
|
||||
b = { bg = c.base.de(50).li(70).hex, fg = c.base.hex },
|
||||
c = { bg = c.base.de(00).li(60).hex, fg = c.base.hex },
|
||||
inactive = { bg = c.base.de(50).li(40).hex, fg = c.base.da(30).hex },
|
||||
}
|
||||
end
|
||||
|
||||
return {
|
||||
normal = {
|
||||
a = { bg = colors.normal, fg = colors.bg },
|
||||
b = { bg = colors.black, fg = colors.fg },
|
||||
c = { bg = colors.linebg, fg = colors.linefg },
|
||||
b = colors.b,
|
||||
c = colors.c,
|
||||
},
|
||||
insert = {
|
||||
a = { bg = colors.insert, fg = colors.bg },
|
||||
b = { bg = colors.black, fg = colors.fg },
|
||||
c = { bg = colors.linebg, fg = colors.linefg },
|
||||
b = colors.b,
|
||||
c = colors.c,
|
||||
},
|
||||
visual = {
|
||||
a = { bg = colors.visual, fg = colors.fg },
|
||||
b = { bg = colors.black, fg = colors.fg },
|
||||
c = { bg = colors.linebg, fg = colors.linefg },
|
||||
a = { bg = colors.visual, fg = colors.bg },
|
||||
b = colors.b,
|
||||
c = colors.c,
|
||||
},
|
||||
replace = {
|
||||
a = { bg = colors.replace, fg = colors.bg },
|
||||
b = { bg = colors.black, fg = colors.fg },
|
||||
c = { bg = colors.linebg, fg = colors.linefg },
|
||||
b = colors.b,
|
||||
c = colors.c,
|
||||
},
|
||||
command = {
|
||||
a = { bg = colors.command, fg = colors.bg },
|
||||
b = { bg = colors.black, fg = colors.fg },
|
||||
c = { bg = colors.linebg, fg = colors.linefg },
|
||||
b = colors.b,
|
||||
c = colors.c,
|
||||
},
|
||||
inactive = {
|
||||
a = { bg = colors.black, fg = colors.fg },
|
||||
b = { bg = colors.black, fg = colors.bg },
|
||||
c = { bg = colors.black, fg = colors.linefg },
|
||||
a = colors.inactive,
|
||||
b = colors.inactive,
|
||||
c = colors.inactive,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user