2021-05-21 12:51:45 +00:00
|
|
|
local util = require("tokyonight.util")
|
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
2021-06-04 06:26:02 +00:00
|
|
|
--- @param colors ColorScheme
|
|
|
|
function M.generate(colors)
|
2023-03-06 06:38:24 +00:00
|
|
|
local wezterm = util.template(
|
2021-05-21 12:51:45 +00:00
|
|
|
[[
|
|
|
|
[colors]
|
|
|
|
foreground = "${fg}"
|
|
|
|
background = "${bg}"
|
|
|
|
cursor_bg = "${fg}"
|
|
|
|
cursor_border = "${fg}"
|
|
|
|
cursor_fg = "${bg}"
|
|
|
|
selection_bg = "${bg_visual}"
|
|
|
|
selection_fg = "${fg}"
|
2023-10-14 16:26:12 +00:00
|
|
|
split = "${blue}"
|
|
|
|
compose_cursor = "${orange}"
|
2021-05-21 12:51:45 +00:00
|
|
|
|
|
|
|
ansi = ["${black}", "${red}", "${green}", "${yellow}", "${blue}", "${magenta}", "${cyan}", "${fg_dark}"]
|
|
|
|
brights = ["${terminal_black}", "${red}", "${green}", "${yellow}", "${blue}", "${magenta}", "${cyan}", "${fg}"]
|
2023-02-07 20:30:08 +00:00
|
|
|
|
|
|
|
[colors.tab_bar]
|
|
|
|
inactive_tab_edge = "${bg_dark}"
|
2023-10-14 16:26:12 +00:00
|
|
|
background = "${bg}"
|
2023-02-07 20:30:08 +00:00
|
|
|
|
|
|
|
[colors.tab_bar.active_tab]
|
2023-10-14 16:26:12 +00:00
|
|
|
fg_color = "${bg_dark}"
|
|
|
|
bg_color = "${blue}"
|
2023-02-07 20:30:08 +00:00
|
|
|
|
|
|
|
[colors.tab_bar.inactive_tab]
|
|
|
|
fg_color = "${dark3}"
|
2023-10-14 16:26:12 +00:00
|
|
|
bg_color = "${bg_highlight}"
|
2023-02-07 20:30:08 +00:00
|
|
|
|
|
|
|
[colors.tab_bar.inactive_tab_hover]
|
|
|
|
fg_color = "${blue}"
|
2023-10-14 16:26:12 +00:00
|
|
|
bg_color = "${bg_highlight}"
|
|
|
|
# intensity = "Bold"
|
2023-02-07 20:30:08 +00:00
|
|
|
|
|
|
|
[colors.tab_bar.new_tab_hover]
|
2023-10-14 16:26:12 +00:00
|
|
|
fg_color = "${blue}"
|
|
|
|
bg_color = "${bg}"
|
|
|
|
intensity = "Bold"
|
2023-02-07 20:30:08 +00:00
|
|
|
|
|
|
|
[colors.tab_bar.new_tab]
|
|
|
|
fg_color = "${blue}"
|
2023-10-14 16:26:12 +00:00
|
|
|
bg_color = "${bg}"
|
2023-03-06 06:38:24 +00:00
|
|
|
|
|
|
|
[metadata]
|
|
|
|
aliases = []
|
|
|
|
author = "folke"
|
2023-10-14 16:26:12 +00:00
|
|
|
name = "${_name}"]],
|
2021-05-21 12:51:45 +00:00
|
|
|
colors
|
|
|
|
)
|
2023-03-06 06:38:24 +00:00
|
|
|
return wezterm
|
2021-05-21 12:51:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|