rename build/ -> template

This commit is contained in:
Michael Chris Lopez
2021-09-21 20:55:53 +08:00
parent 77a82cefca
commit 922eb2de63
23 changed files with 43 additions and 51 deletions

View File

@@ -0,0 +1,41 @@
local template = [[# This file is auto-generated from lua/zenbones/template/alacritty.lua
# ${name} alacritty colors
colors:
# Default colors
primary:
background: '${bg}'
foreground: '${fg}'
# Normal colors
normal:
black: '${color0}'
red: '${color1}'
green: '${color2}'
yellow: '${color3}'
blue: '${color4}'
magenta: '${color5}'
cyan: '${color6}'
white: '${color7}'
# Bright colors
bright:
black: '${color8}'
red: '${color9}'
green: '${color10}'
yellow: '${color11}'
blue: '${color12}'
magenta: '${color13}'
cyan: '${color14}'
white: '${color15}'
]]
return function(name, theme, palette, terminal)
local values = {
name = name,
bg = theme.Normal.bg.hex,
fg = theme.Normal.fg.hex,
}
for i, v in ipairs(terminal.colors) do
values["color" .. (i - 1)] = v.hex
end
return { string.format("extras/alacritty/%s.yml", name), template, values }
end