Skip to content

Commit 6e92bf7

Browse files
committed
feat(extras): add Windows Terminal theme
1 parent 0c7adf2 commit 6e92bf7

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

lua/astrotheme/extras/init.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ local M = {}
99
-- stylua: ignore
1010
M.extras = {
1111
-- Keep all entries here aligned by the first `=` sign
12-
vim = { ext = "vim", url = "https://vimhelp.org/", label = "Vim", subdir = "colors"},
13-
wezterm = { ext = "toml", url = "https://wezfurlong.org/wezterm/config/files.html", label = "WezTerm" },
1412
alacritty = { ext = "toml", url = "https://github.com/alacritty/alacritty", label = "Alacritty" },
1513
delta = { ext = "gitconfig", url = "https://github.com/dandavison/delta", label = "Delta" },
1614
dunst = { ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst" },
@@ -27,6 +25,9 @@ M.extras = {
2725
spotify_player = {ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player"},
2826
terminator = { ext = "conf", url = "https://gnome-terminator.readthedocs.io/en/latest/config.html", label = "Terminator" },
2927
tilix = { ext = "json", url = "https://github.com/gnunn1/tilix", label = "Tilix" },
28+
vim = { ext = "vim", url = "https://vimhelp.org/", label = "Vim", subdir = "colors"},
29+
wezterm = { ext = "toml", url = "https://wezfurlong.org/wezterm/config/files.html", label = "WezTerm" },
30+
windows_terminal = { ext = "json", url = "https://aka.ms/terminal-documentation", label = "Windows Terminal" },
3031
}
3132

3233
function M.setup()
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
# Add the following object to your Windows Terminal configuration
10+
# https://learn.microsoft.com/en-us/windows/terminal/customize-settings/color-schemes#creating-your-own-color-scheme
11+
{
12+
"background": "${ui.base}",
13+
"black": "${term.black}",
14+
"blue": "${term.blue}",
15+
"brightBlack": "${term.bright_black}",
16+
"brightBlue": "${term.bright_blue}",
17+
"brightCyan": "${term.bright_cyan}",
18+
"brightGreen": "${term.bright_green}",
19+
"brightPurple": "${term.bright_purple}",
20+
"brightRed": "${term.bright_red}",
21+
"brightWhite": "${term.bright_white}",
22+
"brightYellow": "${term.bright_yellow}",
23+
"cursorColor": "${syntax.text}",
24+
"cyan": "${term.cyan}",
25+
"foreground": "${syntax.text}",
26+
"green": "${term.green}",
27+
"name": "${_style_name}",
28+
"purple": "${term.purple}",
29+
"red": "${term.red}",
30+
"selectionBackground": "${ui.selection}",
31+
"white": "${term.white}",
32+
"yellow": "${term.yellow}"
33+
}
34+
]],
35+
colors
36+
)
37+
end
38+
39+
return M

0 commit comments

Comments
 (0)