feat: add color config for foot (#147)

* feat: add foot terminal template

* feat: add foot terminal template

* chore: generate foot config

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
typicode
2022-09-02 08:04:52 +02:00
committed by GitHub
parent a1d1c0fb19
commit eaf6a7607e
6 changed files with 144 additions and 1 deletions

View File

@@ -0,0 +1,52 @@
local util = require("tokyonight.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
local footColors = {}
for k, v in pairs(colors) do
if type(v) == "string" then
footColors[k] = v:gsub("^#", "")
end
end
local foot = util.template(
[[
[cursor]
color=${fg} ${bg_visual}
[colors]
foreground=${fg}
background=${bg}
selection-foreground=${fg}
selection-background=${bg_visual}
urls=${green1}
regular0=${black}
regular1=${red}
regular2=${green}
regular3=${yellow}
regular4=${blue}
regular5=${magenta}
regular6=${cyan}
regular7=${fg_dark}
bright0=${terminal_black}
bright1=${red}
bright2=${green}
bright3=${yellow}
bright4=${blue}
bright5=${magenta}
bright6=${cyan}
bright7=${fg}
16=${orange}
17=${red1}]],
footColors
)
return foot
end
return M

View File

@@ -18,6 +18,7 @@ local extras = {
tmux = "tmux",
xresources = "Xresources",
xfceterm = "theme",
foot = "ini",
tilix = "json",
}
-- map of style to style name