farout.nvim/lua/tokyonight/extra/wezterm.lua

30 lines
700 B
Lua
Raw Normal View History

2021-05-21 12:51:45 +00:00
local util = require("tokyonight.util")
local M = {}
function M.wezterm(config)
config = config or require("tokyonight.config")
config.transform_colors = true
local colors = require("tokyonight.colors").setup(config)
local kitty = util.template(
[[
[colors]
foreground = "${fg}"
background = "${bg}"
cursor_bg = "${fg}"
cursor_border = "${fg}"
cursor_fg = "${bg}"
selection_bg = "${bg_visual}"
selection_fg = "${fg}"
ansi = ["${black}", "${red}", "${green}", "${yellow}", "${blue}", "${magenta}", "${cyan}", "${fg_dark}"]
brights = ["${terminal_black}", "${red}", "${green}", "${yellow}", "${blue}", "${magenta}", "${cyan}", "${fg}"]
]],
colors
)
return kitty
end
return M