Skip to content

Commit a543d01

Browse files
committed
feat(extras): add GitUI theme
1 parent bc07be5 commit a543d01

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

lua/astrotheme/extras/gitui.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
(
10+
selected_tab: Some("${syntax.purple}"),
11+
command_fg: Some("${syntax.comment}"),
12+
selection_bg: Some("${ui.selection}"),
13+
selection_fg: Some("${syntax.cyan}"),
14+
cmdbar_bg: Some("${ui.base}"),
15+
cmdbar_extra_lines_bg: Some("${ui.base}"),
16+
disabled_fg: Some("${syntax.comment}"),
17+
diff_line_add: Some("${syntax.green}"),
18+
diff_line_delete: Some("${syntax.red}"),
19+
diff_file_added: Some("${ui.green}"),
20+
diff_file_removed: Some("${ui.red}"),
21+
diff_file_moved: Some("${ui.purple}"),
22+
diff_file_modified: Some("${ui.yellow}"),
23+
commit_hash: Some("${syntax.purple}"),
24+
commit_time: Some("${syntax.cyan}"),
25+
commit_author: Some("${syntax.green}"),
26+
danger_fg: Some("${ui.red}"),
27+
push_gauge_bg: Some("${ui.base}"),
28+
push_gauge_fg: Some("${syntax.text}"),
29+
tag_fg: Some("${ui.purple}"),
30+
branch_fg: Some("${ui.yellow}")
31+
)
32+
]],
33+
colors
34+
)
35+
end
36+
37+
return M

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ M.extras = {
1818
fish = { ext = "fish", url = "https://fishshell.com/docs/current/index.html", label = "Fish" },
1919
fish_themes = { ext = "theme", url = "https://fishshell.com/docs/current/interactive.html#syntax-highlighting", label = "Fish Themes" },
2020
foot = { ext = "ini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
21+
gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
2122
}
2223

2324
function M.setup()

0 commit comments

Comments
 (0)