feat: generate Alacritty files in toml instead of yaml (#158)

Newer versions of Alacritty use the toml format instead of yaml.
This commit is contained in:
Kyle Stevens
2024-02-08 08:00:41 -05:00
committed by GitHub
parent 5b0ca138e2
commit 7abac65da3
25 changed files with 339 additions and 314 deletions

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#2B2F46"
red = "#FF4821"
green = "#58DB9E"
yellow = "#F6A100"
blue = "#00B4E0"
magenta = "#B3A1E6"
cyan = "#00B4E0"
white = "#B3B692"
[colors.cursor]
cursor = "#EDF2C2"
text = "#0E101A"
[colors.normal]
black = "#0E101A"
blue = "#00A3CB"
cyan = "#00A3CB"
green = "#5DCD97"
magenta = "#795CCC"
red = "#E03600"
white = "#EBEFC0"
yellow = "#E39500"
[colors.primary]
background = "#0E101A"
foreground = "#EBEFC0"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#EBEFC0'
background: '#0E101A'
cursor:
cursor: '#EDF2C2'
text: '#0E101A'
normal:
black: '#0E101A'
red: '#E03600'
green: '#5DCD97'
yellow: '#E39500'
blue: '#00A3CB'
magenta: '#795CCC'
cyan: '#00A3CB'
white: '#EBEFC0'
bright:
black: '#2B2F46'
red: '#FF4821'
green: '#58DB9E'
yellow: '#F6A100'
blue: '#00B4E0'
magenta: '#B3A1E6'
cyan: '#00B4E0'
white: '#B3B692'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#3C3C51"
red = "#EC818C"
green = "#9EC967"
yellow = "#F1C982"
blue = "#7BC2DF"
magenta = "#A98FD2"
cyan = "#7BC2DF"
white = "#A8A48D"
[colors.cursor]
cursor = "#E6E0C2"
text = "#1F1F28"
[colors.normal]
black = "#1F1F28"
blue = "#7EB3C9"
cyan = "#7EB3C9"
green = "#98BC6D"
magenta = "#957FB8"
red = "#E46A78"
white = "#DDD8BB"
yellow = "#E5C283"
[colors.primary]
background = "#1F1F28"
foreground = "#DDD8BB"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#DDD8BB'
background: '#1F1F28'
cursor:
cursor: '#E6E0C2'
text: '#1F1F28'
normal:
black: '#1F1F28'
red: '#E46A78'
green: '#98BC6D'
yellow: '#E5C283'
blue: '#7EB3C9'
magenta: '#957FB8'
cyan: '#7EB3C9'
white: '#DDD8BB'
bright:
black: '#3C3C51'
red: '#EC818C'
green: '#9EC967'
yellow: '#F1C982'
blue: '#7BC2DF'
magenta: '#A98FD2'
cyan: '#7BC2DF'
white: '#A8A48D'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#263945"
red = "#E8838F"
green = "#A0FF85"
yellow = "#D68C67"
blue = "#92A0E2"
magenta = "#CF86C1"
cyan = "#65B8C1"
white = "#98A39E"
[colors.cursor]
cursor = "#CEDDD7"
text = "#0F191F"
[colors.normal]
black = "#0F191F"
blue = "#8190D4"
cyan = "#66A5AD"
green = "#90FF6B"
magenta = "#B279A7"
red = "#DE6E7C"
white = "#C6D5CF"
yellow = "#B77E64"
[colors.primary]
background = "#0F191F"
foreground = "#C6D5CF"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#C6D5CF'
background: '#0F191F'
cursor:
cursor: '#CEDDD7'
text: '#0F191F'
normal:
black: '#0F191F'
red: '#DE6E7C'
green: '#90FF6B'
yellow: '#B77E64'
blue: '#8190D4'
magenta: '#B279A7'
cyan: '#66A5AD'
white: '#C6D5CF'
bright:
black: '#263945'
red: '#E8838F'
green: '#A0FF85'
yellow: '#D68C67'
blue: '#92A0E2'
magenta: '#CF86C1'
cyan: '#65B8C1'
white: '#98A39E'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#B3C6B6"
red = "#94253E"
green = "#3F5A22"
yellow = "#803D1C"
blue = "#1D5573"
magenta = "#7B3B70"
cyan = "#2B747C"
white = "#415934"
[colors.cursor]
cursor = "#202E18"
text = "#E5EDE6"
[colors.normal]
black = "#E5EDE6"
blue = "#286486"
cyan = "#3B8992"
green = "#567A30"
magenta = "#88507D"
red = "#A8334C"
white = "#202E18"
yellow = "#944927"
[colors.primary]
background = "#E5EDE6"
foreground = "#202E18"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#202E18'
background: '#E5EDE6'
cursor:
cursor: '#202E18'
text: '#E5EDE6'
normal:
black: '#E5EDE6'
red: '#A8334C'
green: '#567A30'
yellow: '#944927'
blue: '#286486'
magenta: '#88507D'
cyan: '#3B8992'
white: '#202E18'
bright:
black: '#B3C6B6'
red: '#94253E'
green: '#3F5A22'
yellow: '#803D1C'
blue: '#1D5573'
magenta: '#7B3B70'
cyan: '#2B747C'
white: '#415934'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#6C6465"
red = "#EB99B1"
green = "#8FCD92"
yellow = "#FFE5B3"
blue = "#A2C8E9"
magenta = "#B2B3DA"
cyan = "#6BCACB"
white = "#A8A8A8"
[colors.cursor]
cursor = "#E2E2E2"
text = "#4B4B4B"
[colors.normal]
black = "#4B4B4B"
blue = "#97BDDE"
cyan = "#6FBDBE"
green = "#98BD99"
magenta = "#A5A6C5"
red = "#E388A3"
white = "#DDDDDD"
yellow = "#FFDF9B"
[colors.primary]
background = "#4B4B4B"
foreground = "#DDDDDD"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#DDDDDD'
background: '#4B4B4B'
cursor:
cursor: '#E2E2E2'
text: '#4B4B4B'
normal:
black: '#4B4B4B'
red: '#E388A3'
green: '#98BD99'
yellow: '#FFDF9B'
blue: '#97BDDE'
magenta: '#A5A6C5'
cyan: '#6FBDBE'
white: '#DDDDDD'
bright:
black: '#6C6465'
red: '#EB99B1'
green: '#8FCD92'
yellow: '#FFE5B3'
blue: '#A2C8E9'
magenta: '#B2B3DA'
cyan: '#6BCACB'
white: '#A8A8A8'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#BFBABB"
red = "#BE3C6D"
green = "#487249"
yellow = "#A76B48"
blue = "#006F89"
magenta = "#7F4C7E"
cyan = "#006F70"
white = "#777777"
[colors.cursor]
cursor = "#555555"
text = "#E2E2E2"
[colors.normal]
black = "#E2E2E2"
blue = "#0084A3"
cyan = "#008586"
green = "#628562"
magenta = "#896788"
red = "#DC5284"
white = "#555555"
yellow = "#C48562"
[colors.primary]
background = "#E2E2E2"
foreground = "#555555"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#555555'
background: '#E2E2E2'
cursor:
cursor: '#555555'
text: '#E2E2E2'
normal:
black: '#E2E2E2'
red: '#DC5284'
green: '#628562'
yellow: '#C48562'
blue: '#0084A3'
magenta: '#896788'
cyan: '#008586'
white: '#555555'
bright:
black: '#BFBABB'
red: '#BE3C6D'
green: '#487249'
yellow: '#A76B48'
blue: '#006F89'
magenta: '#7F4C7E'
cyan: '#006F70'
white: '#777777'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#C6C6A3"
red = "#94253E"
green = "#3F5A22"
yellow = "#803D1C"
blue = "#1D5573"
magenta = "#7B3B70"
cyan = "#2B747C"
white = "#5C5C5C"
[colors.cursor]
cursor = "#353535"
text = "#F0F0CA"
[colors.normal]
black = "#F0F0CA"
blue = "#286486"
cyan = "#3B8992"
green = "#4F6C31"
magenta = "#88507D"
red = "#A8334C"
white = "#353535"
yellow = "#944927"
[colors.primary]
background = "#F0F0CA"
foreground = "#353535"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#353535'
background: '#F0F0CA'
cursor:
cursor: '#353535'
text: '#F0F0CA'
normal:
black: '#F0F0CA'
red: '#A8334C'
green: '#4F6C31'
yellow: '#944927'
blue: '#286486'
magenta: '#88507D'
cyan: '#3B8992'
white: '#353535'
bright:
black: '#C6C6A3'
red: '#94253E'
green: '#3F5A22'
yellow: '#803D1C'
blue: '#1D5573'
magenta: '#7B3B70'
cyan: '#2B747C'
white: '#5C5C5C'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#403833"
red = "#E8838F"
green = "#8BAE68"
yellow = "#D68C67"
blue = "#61ABDA"
magenta = "#CF86C1"
cyan = "#65B8C1"
white = "#888F94"
[colors.cursor]
cursor = "#C4CACF"
text = "#1C1917"
[colors.normal]
black = "#1C1917"
blue = "#6099C0"
cyan = "#66A5AD"
green = "#819B69"
magenta = "#B279A7"
red = "#DE6E7C"
white = "#B4BDC3"
yellow = "#B77E64"
[colors.primary]
background = "#1C1917"
foreground = "#B4BDC3"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#B4BDC3'
background: '#1C1917'
cursor:
cursor: '#C4CACF'
text: '#1C1917'
normal:
black: '#1C1917'
red: '#DE6E7C'
green: '#819B69'
yellow: '#B77E64'
blue: '#6099C0'
magenta: '#B279A7'
cyan: '#66A5AD'
white: '#B4BDC3'
bright:
black: '#403833'
red: '#E8838F'
green: '#8BAE68'
yellow: '#D68C67'
blue: '#61ABDA'
magenta: '#CF86C1'
cyan: '#65B8C1'
white: '#888F94'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#CFC1BA"
red = "#94253E"
green = "#3F5A22"
yellow = "#803D1C"
blue = "#1D5573"
magenta = "#7B3B70"
cyan = "#2B747C"
white = "#4F5E68"
[colors.cursor]
cursor = "#2C363C"
text = "#F0EDEC"
[colors.normal]
black = "#F0EDEC"
blue = "#286486"
cyan = "#3B8992"
green = "#4F6C31"
magenta = "#88507D"
red = "#A8334C"
white = "#2C363C"
yellow = "#944927"
[colors.primary]
background = "#F0EDEC"
foreground = "#2C363C"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#2C363C'
background: '#F0EDEC'
cursor:
cursor: '#2C363C'
text: '#F0EDEC'
normal:
black: '#F0EDEC'
red: '#A8334C'
green: '#4F6C31'
yellow: '#944927'
blue: '#286486'
magenta: '#88507D'
cyan: '#3B8992'
white: '#2C363C'
bright:
black: '#CFC1BA'
red: '#94253E'
green: '#3F5A22'
yellow: '#803D1C'
blue: '#1D5573'
magenta: '#7B3B70'
cyan: '#2B747C'
white: '#4F5E68'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#625A5B"
red = "#EC8685"
green = "#8BAE68"
yellow = "#D68C67"
blue = "#61ABDA"
magenta = "#CF86C1"
cyan = "#65B8C1"
white = "#C0AB86"
[colors.cursor]
cursor = "#F3EADB"
text = "#404040"
[colors.normal]
black = "#404040"
blue = "#6099C0"
cyan = "#66A5AD"
green = "#819B69"
magenta = "#B279A7"
red = "#E3716E"
white = "#F0E4CF"
yellow = "#B77E64"
[colors.primary]
background = "#404040"
foreground = "#F0E4CF"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#F0E4CF'
background: '#404040'
cursor:
cursor: '#F3EADB'
text: '#404040'
normal:
black: '#404040'
red: '#E3716E'
green: '#819B69'
yellow: '#B77E64'
blue: '#6099C0'
magenta: '#B279A7'
cyan: '#66A5AD'
white: '#F0E4CF'
bright:
black: '#625A5B'
red: '#EC8685'
green: '#8BAE68'
yellow: '#D68C67'
blue: '#61ABDA'
magenta: '#CF86C1'
cyan: '#65B8C1'
white: '#C0AB86'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#3D3839"
red = "#E8838F"
green = "#8BAE68"
yellow = "#D68C67"
blue = "#61ABDA"
magenta = "#CF86C1"
cyan = "#65B8C1"
white = "#8E8E8E"
[colors.cursor]
cursor = "#C9C9C9"
text = "#191919"
[colors.normal]
black = "#191919"
blue = "#6099C0"
cyan = "#66A5AD"
green = "#819B69"
magenta = "#B279A7"
red = "#DE6E7C"
white = "#BBBBBB"
yellow = "#B77E64"
[colors.primary]
background = "#191919"
foreground = "#BBBBBB"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#BBBBBB'
background: '#191919'
cursor:
cursor: '#C9C9C9'
text: '#191919'
normal:
black: '#191919'
red: '#DE6E7C'
green: '#819B69'
yellow: '#B77E64'
blue: '#6099C0'
magenta: '#B279A7'
cyan: '#66A5AD'
white: '#BBBBBB'
bright:
black: '#3D3839'
red: '#E8838F'
green: '#8BAE68'
yellow: '#D68C67'
blue: '#61ABDA'
magenta: '#CF86C1'
cyan: '#65B8C1'
white: '#8E8E8E'

View File

@@ -0,0 +1,25 @@
# This file is auto-generated by shipwright.nvim
[colors.bright]
black = "#C6C3C3"
red = "#94253E"
green = "#3F5A22"
yellow = "#803D1C"
blue = "#1D5573"
magenta = "#7B3B70"
cyan = "#2B747C"
white = "#5C5C5C"
[colors.cursor]
cursor = "#353535"
text = "#EEEEEE"
[colors.normal]
black = "#EEEEEE"
blue = "#286486"
cyan = "#3B8992"
green = "#4F6C31"
magenta = "#88507D"
red = "#A8334C"
white = "#353535"
yellow = "#944927"
[colors.primary]
background = "#EEEEEE"
foreground = "#353535"

View File

@@ -1,26 +0,0 @@
# This file is auto-generated by shipwright.nvim
colors:
primary:
foreground: '#353535'
background: '#EEEEEE'
cursor:
cursor: '#353535'
text: '#EEEEEE'
normal:
black: '#EEEEEE'
red: '#A8334C'
green: '#4F6C31'
yellow: '#944927'
blue: '#286486'
magenta: '#88507D'
cyan: '#3B8992'
white: '#353535'
bright:
black: '#C6C3C3'
red: '#94253E'
green: '#3F5A22'
yellow: '#803D1C'
blue: '#1D5573'
magenta: '#7B3B70'
cyan: '#2B747C'
white: '#5C5C5C'

View File

@@ -1,11 +1,48 @@
local helpers = require("shipwright.transform.helpers")
local base_template = [[
[colors.bright]
black = "$bright_black"
red = "$bright_red"
green = "$bright_green"
yellow = "$bright_yellow"
blue = "$bright_blue"
magenta = "$bright_magenta"
cyan = "$bright_cyan"
white = "$bright_white"
[colors.cursor]
cursor = "$cursor_bg"
text = "$cursor_fg"
[colors.normal]
black = "$black"
blue = "$blue"
cyan = "$cyan"
green = "$green"
magenta = "$magenta"
red = "$red"
white = "$white"
yellow = "$yellow"
[colors.primary]
background = "$bg"
foreground = "$fg"]]
local function alacritty_toml(colors)
local text = helpers.apply_template(base_template, colors)
return helpers.split_newlines(text)
end
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
run(
{ specs, p, term },
transform.colorscheme_to_term_colors,
contrib.alacritty,
alacritty_toml,
{ prepend, "# This file is auto-generated by shipwright.nvim" },
{ overwrite, string.format("extras/alacritty/%s.yml", name) }
{ overwrite, string.format("extras/alacritty/%s.toml", name) }
)
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global