Skip to content

Commit

Permalink
feat(extras): add zellij theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 12, 2024
1 parent 8d12833 commit a3b0c67
Show file tree
Hide file tree
Showing 2 changed files with 34 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
Expand Up @@ -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()
Expand Down
33 changes: 33 additions & 0 deletions lua/astrotheme/extras/zellij.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a3b0c67

Please sign in to comment.