feat: Add themes for terminator terminal (#264)

This commit is contained in:
Donegaan
2022-11-10 22:24:24 +00:00
committed by GitHub
parent ee4ecce638
commit a6d34b4e6d
6 changed files with 40 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ function M.setup()
lua = "lua",
sublime = "tmTheme",
delta = "gitconfig",
terminator = "conf",
}
-- map of style to style name
local styles = {

View File

@@ -0,0 +1,19 @@
local util = require("tokyonight.util")
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