Skip to content

Commit 824f866

Browse files
committed
feat(extras): add Ghostty
1 parent d0ce733 commit 824f866

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

lua/astrotheme/extras/ghostty.lua

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
## name: ${_style_name}
10+
## author: AstroNvim
11+
## upstream: ${_upstream_url}
12+
13+
background = ${ui.base}
14+
foreground= ${syntax.text}
15+
selection-foreground= ${syntax.text}
16+
selection-background = ${ui.selection}
17+
18+
# Colors can be changed by setting the 16 colors of `palette`, which each color
19+
# being defined as regular and bold.
20+
#
21+
# black
22+
palette = 0=${term.black}
23+
palette = 8=${term.bright_black}
24+
# red
25+
palette = 1=${term.red}
26+
palette = 9=${term.bright_red}
27+
# green
28+
palette = 2=${term.green}
29+
palette = 10=${term.bright_green}
30+
# yellow
31+
palette = 3=${term.yellow}
32+
palette = 11=${term.bright_yellow}
33+
# blue
34+
palette = 4=${term.blue}
35+
palette = 12=${term.bright_blue}
36+
# purple
37+
palette = 5=${term.purple}
38+
palette = 13=${term.bright_purple}
39+
# aqua
40+
palette = 6=${term.cyan}
41+
palette = 14=${term.bright_cyan}
42+
# white
43+
palette = 7=${term.white}
44+
palette = 15=${term.bright_white}
45+
]],
46+
colors
47+
)
48+
end
49+
50+
return M

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ M.extras = {
1515
fish = { ext = "fish", url = "https://fishshell.com/docs/current/index.html", label = "Fish" },
1616
fish_themes = { ext = "theme", url = "https://fishshell.com/docs/current/interactive.html#syntax-highlighting", label = "Fish Themes" },
1717
foot = { ext = "ini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
18+
ghostty = { ext = "config", url = "https://github.com/ghostty-org", label = "Ghostty" },
1819
gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
1920
helix = { ext = "toml", url = "https://helix-editor.com/", label = "Helix" },
2021
iterm = { ext = "itermcolors", url = "https://iterm2.com/", label = "iTerm" },

lua/astrotheme/extras/kitty.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ function M.generate(colors)
99
# vim:ft=kitty
1010
1111
## name: ${_style_name}
12-
## license: MIT
1312
## author: AstroNvim
1413
## upstream: ${_upstream_url}
1514

0 commit comments

Comments
 (0)