Files
zenbones-theme/lua/zenbones/shipwright/runners/windows_terminal.lua

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

36 lines
1.1 KiB
Lua
Raw Normal View History

local template = [[{
"name": "$name",
"foreground": "$fg",
"background": "$bg",
"selectionBackground": "$selection_bg",
"cursorColor": "$cursor_bg",
"black": "$black",
"red": "$red",
"green": "$green",
"yellow": "$yellow",
"blue": "$blue",
"purple": "$magenta",
"cyan": "$cyan",
"white": "$white",
"brightBlack": "$bright_black",
"brightRed": "$bright_red",
"brightGreen": "$bright_green",
"brightYellow": "$bright_yellow",
"brightBlue": "$bright_blue",
"brightPurple": "$bright_magenta",
"brightCyan": "$bright_cyan",
"brightWhite": "$bright_white"
2021-12-28 07:05:45 +08:00
}]]
local helpers = require "shipwright.transform.helpers"
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
2021-12-28 07:05:45 +08:00
run({ specs, p, term }, transform.colorscheme_to_term_colors, function(colors)
local values = vim.tbl_extend("keep", colors, { name = name })
local text = helpers.apply_template(template, values)
return { text }
end, { overwrite, string.format("extras/windows_terminal/%s.json", name) })
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global