2023-12-01 20:30:50 +00:00
|
|
|
local util = require("farout.util")
|
2022-11-10 22:24:24 +00:00
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
--- @param colors ColorScheme
|
|
|
|
function M.generate(colors)
|
|
|
|
local terminator = util.template(
|
|
|
|
[=[
|
|
|
|
[[${_style_name}]]
|
|
|
|
palette = "${black}:${red}:${green}:${yellow}:${blue}:${magenta}:${cyan}:${fg_dark}:${terminal_black}:${red}:${green}:${yellow}:${blue}:${magenta}:${cyan}:${purple}"
|
|
|
|
background_color = "${bg}"
|
|
|
|
foreground_color = "${fg}"
|
|
|
|
]=],
|
|
|
|
colors
|
|
|
|
)
|
|
|
|
return terminator
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|