Skip to content

Commit

Permalink
feat(extras): add GitUI theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 12, 2024
1 parent bc07be5 commit a543d01
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions lua/astrotheme/extras/gitui.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
local util = require "astrotheme.extras"

local M = {}

--- @param colors AstroThemePalette
function M.generate(colors)
return util.template(
[[
(
selected_tab: Some("${syntax.purple}"),
command_fg: Some("${syntax.comment}"),
selection_bg: Some("${ui.selection}"),
selection_fg: Some("${syntax.cyan}"),
cmdbar_bg: Some("${ui.base}"),
cmdbar_extra_lines_bg: Some("${ui.base}"),
disabled_fg: Some("${syntax.comment}"),
diff_line_add: Some("${syntax.green}"),
diff_line_delete: Some("${syntax.red}"),
diff_file_added: Some("${ui.green}"),
diff_file_removed: Some("${ui.red}"),
diff_file_moved: Some("${ui.purple}"),
diff_file_modified: Some("${ui.yellow}"),
commit_hash: Some("${syntax.purple}"),
commit_time: Some("${syntax.cyan}"),
commit_author: Some("${syntax.green}"),
danger_fg: Some("${ui.red}"),
push_gauge_bg: Some("${ui.base}"),
push_gauge_fg: Some("${syntax.text}"),
tag_fg: Some("${ui.purple}"),
branch_fg: Some("${ui.yellow}")
)
]],
colors
)
end

return M
1 change: 1 addition & 0 deletions lua/astrotheme/extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ M.extras = {
fish = { ext = "fish", url = "https://fishshell.com/docs/current/index.html", label = "Fish" },
fish_themes = { ext = "theme", url = "https://fishshell.com/docs/current/interactive.html#syntax-highlighting", label = "Fish Themes" },
foot = { ext = "ini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
}

function M.setup()
Expand Down

0 comments on commit a543d01

Please sign in to comment.