File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ M.extras = {
2929 wezterm = { ext = " toml" , url = " https://wezfurlong.org/wezterm/config/files.html" , label = " WezTerm" },
3030 windows_terminal = { ext = " json" , url = " https://aka.ms/terminal-documentation" , label = " Windows Terminal" },
3131 xfceterm = { ext = " theme" , url = " https://docs.xfce.org/apps/terminal/advanced" , label = " Xfce Terminal" },
32+ xresources = { ext = " Xresources" , url = " https://wiki.archlinux.org/title/X_resources" , label = " Xresources" },
3233}
3334
3435function M .setup ()
Original file line number Diff line number Diff line change 1+ local util = require " astrotheme.extras"
2+
3+ local M = {}
4+
5+ --- @param colors AstroThemePalette
6+ function M .generate (colors )
7+ return util .template (
8+ [[
9+ ! ${_style_name} colors for Xresources
10+
11+ *background: ${ui.base}
12+ *foreground: ${syntax.text}
13+
14+ *color0: ${term.black}
15+ *color1: ${term.red}
16+ *color2: ${term.green}
17+ *color3: ${term.yellow}
18+ *color4: ${term.blue}
19+ *color5: ${term.purple}
20+ *color6: ${term.cyan}
21+ *color7: ${term.white}
22+
23+ *color8: ${term.bright_black}
24+ *color9: ${term.bright_red}
25+ *color10: ${term.bright_green}
26+ *color11: ${term.bright_yellow}
27+ *color12: ${term.bright_blue}
28+ *color13: ${term.bright_purple}
29+ *color14: ${term.bright_cyan}
30+ *color15: ${term.bright_white}
31+ ]] ,
32+ colors
33+ )
34+ end
35+
36+ return M
You can’t perform that action at this time.
0 commit comments