Skip to content

Commit

Permalink
feat(extras): add spotify_player colors
Browse files Browse the repository at this point in the history
  • Loading branch information
skoch13 committed Mar 4, 2024
1 parent 610179f commit 40a567b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/tokyonight/extra/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ M.extras = {
gitui = {ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI"},
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix"},
fzf = { ext = "zsh", url = "https://github.com/junegunn/fzf", label = "Fzf"},
spotify_player = {ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player"},
}

local function write(str, fileName)
Expand Down
34 changes: 34 additions & 0 deletions lua/tokyonight/extra/spotify_player.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
local util = require("tokyonight.util")

local M = {}

--- @param colors ColorScheme
function M.generate(colors)
return util.template(M.template, colors)
end

M.template = [=[
[[themes]]
name = "${_style_name}"
[themes.palette]
background = "${bg_dark}"
foreground = "${fg_dark}"
black = "${terminal_black}"
red = "${red}"
green = "${green}"
yellow = "${yellow}"
blue = "${blue}"
magenta = "${magenta}"
cyan = "${cyan}"
white = "${white}"
bright_black = "${bg}"
bright_red = "${red1}"
bright_green = "${green1}"
bright_yellow = "${orange}"
bright_blue = "${blue1}"
bright_magenta = "${magenta2}"
bright_cyan = "${bleu5}"
bright_white = "${fg}"
]=]

return M

0 comments on commit 40a567b

Please sign in to comment.