From bef63dbbcd83cae134681623b0c935a46e956002 Mon Sep 17 00:00:00 2001 From: Colton Donnelly Date: Wed, 17 Jul 2024 22:46:02 -0400 Subject: [PATCH] feat(extras): add process-compose extra --- lua/tokyonight/extra/init.lua | 9 +++-- lua/tokyonight/extra/process_compose.lua | 51 ++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 lua/tokyonight/extra/process_compose.lua diff --git a/lua/tokyonight/extra/init.lua b/lua/tokyonight/extra/init.lua index 07ef94e60..877171515 100644 --- a/lua/tokyonight/extra/init.lua +++ b/lua/tokyonight/extra/init.lua @@ -6,7 +6,7 @@ local M = {} --- @type table -- 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" }, @@ -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" }, diff --git a/lua/tokyonight/extra/process_compose.lua b/lua/tokyonight/extra/process_compose.lua new file mode 100644 index 000000000..cd168841d --- /dev/null +++ b/lua/tokyonight/extra/process_compose.lua @@ -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