Skip to content

Commit f77b768

Browse files
committed
feat(extras): add Spotify Player theme
1 parent 67198bb commit f77b768

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ M.extras = {
2424
lazygit = { ext = "yml", url = "https://github.com/jesseduffield/lazygit", label = "Lazygit" },
2525
lua = { ext = "lua", url = "https://www.lua.org", label = "Lua Table for testing" },
2626
slack = {ext = "txt", url = "https://slack.com", label = "Slack"},
27+
spotify_player = {ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player"},
2728
}
2829

2930
function M.setup()
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
[[themes]]
10+
name = "${_style_name}"
11+
[themes.palette]
12+
background = "${ui.base}"
13+
foreground = "${syntax.text}"
14+
black = "${term.black}"
15+
red = "${term.red}"
16+
green = "${term.green}"
17+
yellow = "${term.yellow}"
18+
blue = "${term.blue}"
19+
magenta = "${term.purple}"
20+
cyan = "${term.cyan}"
21+
white = "${term.white}"
22+
bright_black = "${term.bright_black}"
23+
bright_red = "${term.bright_red}"
24+
bright_green = "${term.bright_green}"
25+
bright_yellow = "${term.bright_yellow}"
26+
bright_blue = "${term.bright_blue}"
27+
bright_magenta = "${term.bright_purple}"
28+
bright_cyan = "${term.bright_cyan}"
29+
bright_white = "${term.bright_white}"
30+
]=],
31+
colors
32+
)
33+
end
34+
35+
return M

0 commit comments

Comments
 (0)