build: selene + stylua

This commit is contained in:
Folke Lemaitre
2021-05-12 11:19:28 +02:00
parent fc7301ab94
commit 09cc28432f
13 changed files with 269 additions and 155 deletions

View File

@@ -9,10 +9,13 @@ function M.alacritty(config)
local alacrittyColors = {}
for k, v in pairs(colors) do
if type(v) == "string" then alacrittyColors[k] = v:gsub("^#", "0x") end
if type(v) == "string" then
alacrittyColors[k] = v:gsub("^#", "0x")
end
end
local alacritty = util.template([[
local alacritty = util.template(
[[
# TokyoNight Alacritty Colors
colors:
# Default colors
@@ -46,10 +49,11 @@ colors:
- { index: 16, color: '${orange}' }
- { index: 17, color: '${red1}' }
]], alacrittyColors)
]],
alacrittyColors
)
return alacritty
end
return M