diff --git a/lua/astrotheme/extras/init.lua b/lua/astrotheme/extras/init.lua index acda188..1e78ea2 100644 --- a/lua/astrotheme/extras/init.lua +++ b/lua/astrotheme/extras/init.lua @@ -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() diff --git a/lua/astrotheme/extras/terminator.lua b/lua/astrotheme/extras/terminator.lua new file mode 100644 index 0000000..1d9c2a4 --- /dev/null +++ b/lua/astrotheme/extras/terminator.lua @@ -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