Skip to content

Commit

Permalink
feat(extras): add process-compose extra
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmistman committed Jul 18, 2024
1 parent a2979ce commit 258d408
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lua/tokyonight/extra/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local M = {}
--- @type table<string, {ext:string, url:string, label:string, subdir?: string, sep?:string}>
-- stylua: ignore
M.extras = {
aerc = { ext = "ini", url = "https://git.sr.ht/~rjarry/aerc/", label = "Aerc"},
aerc = { ext = "ini", url = "https://git.sr.ht/~rjarry/aerc/", label = "Aerc" },
alacritty = { ext = "toml", url = "https://github.com/alacritty/alacritty", label = "Alacritty" },
delta = { ext = "gitconfig", url = "https://github.com/dandavison/delta", label = "Delta" },
dunst = { ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst" },
Expand All @@ -15,16 +15,17 @@ M.extras = {
foot = { ext = "ini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
fzf = { ext = "sh", url = "https://github.com/junegunn/fzf", label = "Fzf" },
gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
gnome_terminal = { ext = "dconf", url = "https://gitlab.gnome.org/GNOME/gnome-terminal", label = "GNOME Terminal"},
gnome_terminal = { ext = "dconf", url = "https://gitlab.gnome.org/GNOME/gnome-terminal", label = "GNOME Terminal" },
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix" },
iterm = { ext = "itermcolors", url = "https://iterm2.com/", label = "iTerm" },
kitty = { ext = "conf", url = "https://sw.kovidgoyal.net/kitty/conf.html", label = "Kitty" },
lazygit = { ext = "yml", url = "https://github.com/jesseduffield/lazygit", label = "Lazygit" },
lua = { ext = "lua", url = "https://www.lua.org", label = "Lua Table for testing" },
prism = { ext = "js", url = "https://prismjs.com", label = "Prism" },
slack = {ext = "txt", url = "https://slack.com", label = "Slack"},
process_compose = { ext = "yaml", url = "https://f1bonacc1.github.io/process-compose/", label = "process-compose" },
slack = { ext = "txt", url = "https://slack.com", label = "Slack" },
sublime = { ext = "tmTheme", url = "https://www.sublimetext.com/docs/themes", label = "Sublime Text" },
spotify_player = {ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player"},
spotify_player = { ext = "toml", url = "https://github.com/aome510/spotify-player", label = "Spotify Player" },
terminator = { ext = "conf", url = "https://gnome-terminator.readthedocs.io/en/latest/config.html", label = "Terminator" },
tilix = { ext = "json", url = "https://github.com/gnunn1/tilix", label = "Tilix" },
tmux = { ext = "tmux", url = "https://github.com/tmux/tmux/wiki", label = "Tmux" },
Expand Down
51 changes: 51 additions & 0 deletions lua/tokyonight/extra/process_compose.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
local util = require("tokyonight.util")
local M = {}

--- @param colors ColorScheme
function M.generate(colors)
local process_compose = util.template(
[=[
style:
name: ${_name}
body:
fgColor: '${fg}'
bgColor: '${bg_dark}'
secondaryTextColor: '${fg_dark}'
tertiaryTextColor: '${fg_visual}'
borderColor: '${fg_gutter}'
stat_table:
keyFgColor: '${yellow}'
valueFgColor: '${fg}'
logoColor: '${yellow}'
proc_table:
fgColor: '${blue}'
fgWarning: '${yellow}'
fgPending: '${dark3}'
fgCompleted: '${green}'
fgError: '${red1}'
headerFgColor: '${fg}'
help:
fgColor: '${blue1}'
keyColor: '${fg}'
hlColor: '${green}'
categoryFgColor: '${blue5}'
dialog:
fgColor: '${blue1}'
bgColor: '${black}'
contrastBgColor: '${bg}'
attentionBgColor: '${red1}'
buttonFgColor: '${black}'
buttonBgColor: '${bg_highlight}'
buttonFocusFgColor: '${black}'
buttonFocusBgColor: '${blue}'
labelFgColor: '${yellow}'
fieldFgColor: '${black}'
fieldBgColor: '${blue7}'
]=],
colors
)

return process_compose
end

return M

0 comments on commit 258d408

Please sign in to comment.