File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed
Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ M.extras = {
2121 gitui = { ext = " ron" , url = " https://github.com/extrawurst/gitui" , label = " GitUI" },
2222 helix = { ext = " toml" , url = " https://helix-editor.com/" , label = " Helix" },
2323 iterm = { ext = " itermcolors" , url = " https://iterm2.com/" , label = " iTerm" },
24+ kitty = { ext = " conf" , url = " https://sw.kovidgoyal.net/kitty/conf.html" , label = " Kitty" },
2425}
2526
2627function M .setup ()
Original file line number Diff line number Diff line change 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+ # vim:ft=kitty
10+
11+ ## name: ${_style_name}
12+ ## license: MIT
13+ ## author: AstroNvim
14+ ## upstream: ${_upstream_url}
15+
16+
17+ background ${ui.base}
18+ foreground ${syntax.text}
19+ selection_background ${ui.selection}
20+ selection_foreground ${syntax.text}
21+ url_color ${syntax.blue}
22+ cursor ${syntax.text}
23+ cursor_text_color ${ui.base}
24+
25+ # Tabs
26+ active_tab_background ${ui.accent}
27+ active_tab_foreground ${ui.base}
28+ inactive_tab_background ${ui.base}
29+ inactive_tab_foreground ${ui.text_inactive}
30+
31+ # Windows
32+ active_border_color ${ui.accent}
33+ inactive_border_color ${ui.border}
34+
35+ # normal
36+ color0 ${term.black}
37+ color1 ${term.red}
38+ color2 ${term.green}
39+ color3 ${term.yellow}
40+ color4 ${term.blue}
41+ color5 ${term.purple}
42+ color6 ${term.cyan}
43+ color7 ${term.white}
44+
45+ # bright
46+ color8 ${term.bright_black}
47+ color9 ${term.bright_red}
48+ color10 ${term.bright_green}
49+ color11 ${term.bright_yellow}
50+ color12 ${term.bright_blue}
51+ color13 ${term.bright_purple}
52+ color14 ${term.bright_cyan}
53+ color15 ${term.bright_white}
54+
55+ # extended colors
56+ color16 ${ui.orange}
57+ color17 ${ui.red}
58+ ]] ,
59+ colors
60+ )
61+ end
62+
63+ return M
You can’t perform that action at this time.
0 commit comments