Skip to content

Commit

Permalink
feat(extras): add Terminator theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f77b768 commit c071a93
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/astrotheme/extras/init.lua
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ M.extras = {
lua = { ext = "lua", url = "https://www.lua.org", label = "Lua Table for testing" },
slack = {ext = "txt", url = "https://slack.com", label = "Slack"},
spotify_player = {ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player"},
terminator = { ext = "conf", url = "https://gnome-terminator.readthedocs.io/en/latest/config.html", label = "Terminator" },
}

function M.setup()
18 changes: 18 additions & 0 deletions lua/astrotheme/extras/terminator.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
local util = require "astrotheme.extras"

local M = {}

--- @param colors AstroThemePalette
function M.generate(colors)
return util.template(
[=[
[[${_style_name}]]
palette = "${term.black}:${term.red}:${term.green}:${term.yellow}:${term.blue}:${term.purple}:${term.cyan}:${term.white}:${term.bright_black}:${term.bright_red}:${term.bright_green}:${term.bright_yellow}:${term.bright_blue}:${term.bright_purple}:${term.bright_cyan}:${term.bright_white}"
background_color = "${ui.base}"
foreground_color = "${syntax.text}"
]=],
colors
)
end

return M

0 comments on commit c071a93

Please sign in to comment.