add wezterm runner
This commit is contained in:
@@ -55,8 +55,12 @@ local function make_runners(config)
|
|||||||
end
|
end
|
||||||
|
|
||||||
M.run = function()
|
M.run = function()
|
||||||
local runner_files = { "alacritty", "kitty" }
|
local runner_files = { "alacritty", "kitty", "wezterm" }
|
||||||
local colorschemes = { { name = "zenbones" }, { name = "neobones" } }
|
local colorschemes = {
|
||||||
|
{ name = "zenbones" },
|
||||||
|
{ name = "neobones" },
|
||||||
|
{ name = "vimbones", background = "light" },
|
||||||
|
}
|
||||||
for _, colorscheme in ipairs(colorschemes) do
|
for _, colorscheme in ipairs(colorschemes) do
|
||||||
for _, file in ipairs(runner_files) do
|
for _, file in ipairs(runner_files) do
|
||||||
colorscheme.file = file
|
colorscheme.file = file
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ run(
|
|||||||
author = "Michael Chris Lopez",
|
author = "Michael Chris Lopez",
|
||||||
license = "MIT",
|
license = "MIT",
|
||||||
upstream = string.format("https://github.com/mcchrish/zenbones.nvim/raw/main/extras/kitty/%s.conf", name),
|
upstream = string.format("https://github.com/mcchrish/zenbones.nvim/raw/main/extras/kitty/%s.conf", name),
|
||||||
selection_bg = specs.Visual.bg.hex,
|
|
||||||
selection_fg = colors.fg,
|
|
||||||
url_color = term[13].hex,
|
url_color = term[13].hex,
|
||||||
tab_active_bg = specs.Search.bg.hex,
|
tab_active_bg = specs.Search.bg.hex,
|
||||||
tab_active_fg = colors.fg,
|
tab_active_fg = colors.fg,
|
||||||
|
|||||||
12
lua/zenbones/shipwright/runners/wezterm.lua
Normal file
12
lua/zenbones/shipwright/runners/wezterm.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
run(
|
||||||
|
{ specs, p, term },
|
||||||
|
transform.colorscheme_to_term_colors,
|
||||||
|
function(colors)
|
||||||
|
return vim.tbl_extend("keep", colors, {
|
||||||
|
cursor_border = specs.Cursor.fg.hex,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
contrib.wezterm,
|
||||||
|
{ prepend, "# This file is auto-generated by shipwright.nvim" },
|
||||||
|
{ overwrite, string.format("extras/wezterm/%s.toml", name:sub(1, 1):upper() .. name:sub(2)) }
|
||||||
|
)
|
||||||
@@ -2,11 +2,14 @@ local M = {}
|
|||||||
|
|
||||||
M.colorscheme_to_term_colors = function(colorscheme)
|
M.colorscheme_to_term_colors = function(colorscheme)
|
||||||
local specs, _, term = unpack(colorscheme)
|
local specs, _, term = unpack(colorscheme)
|
||||||
|
local fg = specs.Normal.fg.hex
|
||||||
return {
|
return {
|
||||||
fg = specs.Normal.fg.hex,
|
fg = fg,
|
||||||
bg = specs.Normal.bg.hex,
|
bg = specs.Normal.bg.hex,
|
||||||
cursor_fg = specs.Cursor.fg.hex,
|
cursor_fg = specs.Cursor.fg.hex,
|
||||||
cursor_bg = specs.Cursor.bg.hex,
|
cursor_bg = specs.Cursor.bg.hex,
|
||||||
|
selection_bg = specs.Visual.bg.hex,
|
||||||
|
selection_fg = fg,
|
||||||
black = term[1].hex,
|
black = term[1].hex,
|
||||||
red = term[2].hex,
|
red = term[2].hex,
|
||||||
green = term[3].hex,
|
green = term[3].hex,
|
||||||
|
|||||||
Reference in New Issue
Block a user