Files
zenbones-theme/lua/zenbones/template/kitty.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.6 KiB
Lua
Raw Normal View History

2021-09-21 20:55:53 +08:00
local template = [[# This file is auto-generated from lua/zenbones/template/kitty.lua
2021-09-18 14:32:29 +08:00
# vim:ft=kitty
2021-09-14 05:53:51 +08:00
## name: ${name}
2021-09-04 16:40:29 +08:00
## license: MIT
## author: Michael Chris Lopez
2021-09-14 05:53:51 +08:00
## upstream: https://github.com/mcchrish/zenbones.nvim/raw/main/extras/kitty/${name}.conf
2021-09-04 16:40:29 +08:00
background ${background}
foreground ${foreground}
selection_background ${selection_background}
selection_foreground ${selection_foreground}
url_color ${url_color}
cursor ${cursor}
# Tabs
active_tab_background ${active_tab_background}
active_tab_foreground ${active_tab_foreground}
inactive_tab_background ${inactive_tab_background}
inactive_tab_foreground ${inactive_tab_foreground}
#tab_bar_background ${tab_bar_background}
# normal
color0 ${color0}
color1 ${color1}
color2 ${color2}
color3 ${color3}
color4 ${color4}
color5 ${color5}
color6 ${color6}
color7 ${color7}
# bright
color8 ${color8}
color9 ${color9}
color10 ${color10}
color11 ${color11}
color12 ${color12}
color13 ${color13}
color14 ${color14}
color15 ${color15}
]]
2021-10-09 16:27:46 +08:00
return function(name, theme, palette, term)
2021-09-14 05:53:51 +08:00
local bg = theme.Normal.bg.hex
local fg = theme.Normal.fg.hex
local values = {
name = name,
background = bg,
foreground = fg,
selection_background = theme.Visual.bg.hex,
selection_foreground = fg,
2021-10-09 16:27:46 +08:00
url_color = term[13].hex,
2021-09-14 05:53:51 +08:00
cursor = fg,
active_tab_background = theme.Search.bg.hex,
active_tab_foreground = fg,
inactive_tab_background = theme.StatusLine.bg.hex,
inactive_tab_foreground = fg,
}
2021-10-09 16:27:46 +08:00
for i, v in ipairs(term) do
2021-09-14 05:53:51 +08:00
values["color" .. (i - 1)] = v.hex
end
2021-09-04 16:02:45 +08:00
2021-09-14 05:53:51 +08:00
return { string.format("extras/kitty/%s.conf", name), template, values }
end