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:
52
lua/tokyonight/extra/foot.lua
Normal file
52
lua/tokyonight/extra/foot.lua
Normal 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
|
||||
@@ -18,6 +18,7 @@ local extras = {
|
||||
tmux = "tmux",
|
||||
xresources = "Xresources",
|
||||
xfceterm = "theme",
|
||||
foot = "ini",
|
||||
tilix = "json",
|
||||
}
|
||||
-- map of style to style name
|
||||
|
||||
Reference in New Issue
Block a user