Format workspace with CodeFormat
This commit is contained in:
@@ -22,26 +22,26 @@ local bg = Color.from_hex(spec.bg1)
|
||||
local fg = spec.fg2
|
||||
|
||||
local function generate_mode(color, amount)
|
||||
amount = amount or 0.3
|
||||
local fade = bg:blend(Color.from_hex(color), amount):to_css()
|
||||
local b = bg:to_css()
|
||||
local f = fg
|
||||
amount = amount or 0.3
|
||||
local fade = bg:blend(Color.from_hex(color), amount):to_css()
|
||||
local b = bg:to_css()
|
||||
local f = fg
|
||||
|
||||
return {
|
||||
a = { bg = color, fg = b },
|
||||
b = { bg = fade, fg = f },
|
||||
c = { bg = b, fg = f },
|
||||
}
|
||||
return {
|
||||
a = { bg = color, fg = b, },
|
||||
b = { bg = fade, fg = f, },
|
||||
c = { bg = b, fg = f, },
|
||||
}
|
||||
end
|
||||
|
||||
-- stylua: ignore
|
||||
local nightfox = {
|
||||
normal = generate_mode(pal.blue.base),
|
||||
insert = generate_mode(pal.green.base),
|
||||
command = generate_mode(pal.yellow.base),
|
||||
visual = generate_mode(pal.magenta.base),
|
||||
replace = generate_mode(pal.red.base),
|
||||
inactive = generate_mode(spec.fg3),
|
||||
local nightfox = {
|
||||
normal = generate_mode(pal.blue.base),
|
||||
insert = generate_mode(pal.green.base),
|
||||
command = generate_mode(pal.yellow.base),
|
||||
visual = generate_mode(pal.magenta.base),
|
||||
replace = generate_mode(pal.red.base),
|
||||
inactive = generate_mode(spec.fg3),
|
||||
}
|
||||
|
||||
return nightfox
|
||||
|
||||
Reference in New Issue
Block a user