From a3b0c67e36004f1830dc376113938a910da178e2 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 12 Jul 2024 15:13:25 -0400 Subject: [PATCH] feat(extras): add zellij theme --- lua/astrotheme/extras/init.lua | 1 + lua/astrotheme/extras/zellij.lua | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 lua/astrotheme/extras/zellij.lua diff --git a/lua/astrotheme/extras/init.lua b/lua/astrotheme/extras/init.lua index 4662045..40f323c 100644 --- a/lua/astrotheme/extras/init.lua +++ b/lua/astrotheme/extras/init.lua @@ -30,6 +30,7 @@ M.extras = { windows_terminal = { ext = "json", url = "https://aka.ms/terminal-documentation", label = "Windows Terminal" }, xfceterm = { ext = "theme", url = "https://docs.xfce.org/apps/terminal/advanced", label = "Xfce Terminal" }, xresources = { ext = "Xresources", url = "https://wiki.archlinux.org/title/X_resources", label = "Xresources" }, + zellij = { ext = "kdl", url = "https://zellij.dev/", label = "Zellij" }, } function M.setup() diff --git a/lua/astrotheme/extras/zellij.lua b/lua/astrotheme/extras/zellij.lua new file mode 100644 index 0000000..f415949 --- /dev/null +++ b/lua/astrotheme/extras/zellij.lua @@ -0,0 +1,33 @@ +local util = require "astrotheme.extras" + +local M = {} + +--- @param colors AstroThemePalette +function M.generate(colors) + return util.template( + [[ +// ${_style_name} Zellij Colors +// Add this file to your `CONFIG_DIR/themes` directory as described here: +// https://zellij.dev/documentation/themes#getting-zellij-to-pick-up-the-theme + +themes { + ${_style_name} { + fg "${syntax.text}" + bg "${ui.base}" + black "${term.black}" + red "${term.red}" + green "${term.green}" + yellow "${term.yellow}" + blue "${term.blue}" + magenta "${term.purple}" + cyan "${term.cyan}" + white "${term.white}" + orange "${syntax.orange}" + } +} +]], + colors + ) +end + +return M