farout.nvim/lua/tokyonight/extra/kitty.lua
Mark Story f589494e57
feat: Improve the cursor color of day Kitty theme (#153)
* Improve the cursor color of day Kitty theme

Previously the cursor colour would have the default foreground
color which is a a bit too dark when you have a block cursor and use
autocomplete features. Using the background color as the cursor text
ensures that text in a block cursor is always visible.

* Update generation script and other kitty themes
2022-09-02 08:07:31 +02:00

62 lines
981 B
Lua

local util = require("tokyonight.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
local kitty = util.template(
[[
# vim:ft=kitty
## name: ${_style_name}
## license: MIT
## author: Folke Lemaitre
## upstream: ${_upstream_url}
background ${bg}
foreground ${fg}
selection_background ${bg_visual}
selection_foreground ${fg}
url_color ${green1}
cursor ${fg}
cursor_text_color ${bg}
# Tabs
active_tab_background ${blue}
active_tab_foreground ${bg_dark}
inactive_tab_background ${bg_highlight}
inactive_tab_foreground ${dark3}
#tab_bar_background ${black}
# normal
color0 ${black}
color1 ${red}
color2 ${green}
color3 ${yellow}
color4 ${blue}
color5 ${magenta}
color6 ${cyan}
color7 ${fg_dark}
# bright
color8 ${terminal_black}
color9 ${red}
color10 ${green}
color11 ${yellow}
color12 ${blue}
color13 ${magenta}
color14 ${cyan}
color15 ${fg}
# extended colors
color16 ${orange}
color17 ${red1}
]],
colors
)
return kitty
end
return M