From 63386c6b9e482ee42650b0be9c23275a2455b95c Mon Sep 17 00:00:00 2001 From: Michael Chris Lopez Date: Tue, 28 Dec 2021 07:05:45 +0800 Subject: [PATCH] chore: format --- README.md | 1 + extras/windows_terminal/duckbones.json | 1 - extras/windows_terminal/kanagawabones.json | 1 - extras/windows_terminal/neobones_light.json | 1 - extras/windows_terminal/seoulbones_dark.json | 1 - extras/windows_terminal/seoulbones_light.json | 1 - extras/windows_terminal/vimbones.json | 1 - extras/windows_terminal/zenbones_dark.json | 1 - extras/windows_terminal/zenbones_light.json | 1 - extras/windows_terminal/zenburned.json | 1 - extras/windows_terminal/zenwritten_dark.json | 1 - extras/windows_terminal/zenwritten_light.json | 1 - .../shipwright/runners/windows_terminal.lua | 20 ++++++------------- 13 files changed, 7 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index a897003..b16df31 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ currently supported. - [Kitty](extras/kitty) - [Alacritty](extras/alacritty) - [WezTerm](extras/wezterm) +- [Windows Terminal](extras/windows_terminal) - [Tmux](extras/tmux) It's also possible to generate any color configuration files using shipwright, diff --git a/extras/windows_terminal/duckbones.json b/extras/windows_terminal/duckbones.json index 9ec3c4c..4bb7421 100644 --- a/extras/windows_terminal/duckbones.json +++ b/extras/windows_terminal/duckbones.json @@ -21,4 +21,3 @@ "brightCyan": "#00B4E0", "brightWhite": "#B3B692" } - diff --git a/extras/windows_terminal/kanagawabones.json b/extras/windows_terminal/kanagawabones.json index 46c3556..20a13ef 100644 --- a/extras/windows_terminal/kanagawabones.json +++ b/extras/windows_terminal/kanagawabones.json @@ -21,4 +21,3 @@ "brightCyan": "#7BC2DF", "brightWhite": "#A8A48D" } - diff --git a/extras/windows_terminal/neobones_light.json b/extras/windows_terminal/neobones_light.json index 5db1a32..3f5bde9 100644 --- a/extras/windows_terminal/neobones_light.json +++ b/extras/windows_terminal/neobones_light.json @@ -21,4 +21,3 @@ "brightCyan": "#2B747C", "brightWhite": "#415934" } - diff --git a/extras/windows_terminal/seoulbones_dark.json b/extras/windows_terminal/seoulbones_dark.json index 62cf4a6..901e3a6 100644 --- a/extras/windows_terminal/seoulbones_dark.json +++ b/extras/windows_terminal/seoulbones_dark.json @@ -21,4 +21,3 @@ "brightCyan": "#6BCACB", "brightWhite": "#A8A8A8" } - diff --git a/extras/windows_terminal/seoulbones_light.json b/extras/windows_terminal/seoulbones_light.json index f623cde..052f345 100644 --- a/extras/windows_terminal/seoulbones_light.json +++ b/extras/windows_terminal/seoulbones_light.json @@ -21,4 +21,3 @@ "brightCyan": "#006F70", "brightWhite": "#777777" } - diff --git a/extras/windows_terminal/vimbones.json b/extras/windows_terminal/vimbones.json index 70c2456..489b315 100644 --- a/extras/windows_terminal/vimbones.json +++ b/extras/windows_terminal/vimbones.json @@ -21,4 +21,3 @@ "brightCyan": "#2B747C", "brightWhite": "#5C5C5C" } - diff --git a/extras/windows_terminal/zenbones_dark.json b/extras/windows_terminal/zenbones_dark.json index 7802319..d9dbbf4 100644 --- a/extras/windows_terminal/zenbones_dark.json +++ b/extras/windows_terminal/zenbones_dark.json @@ -21,4 +21,3 @@ "brightCyan": "#65B8C1", "brightWhite": "#888F94" } - diff --git a/extras/windows_terminal/zenbones_light.json b/extras/windows_terminal/zenbones_light.json index 8bf8603..c8df44c 100644 --- a/extras/windows_terminal/zenbones_light.json +++ b/extras/windows_terminal/zenbones_light.json @@ -21,4 +21,3 @@ "brightCyan": "#2B747C", "brightWhite": "#4F5E68" } - diff --git a/extras/windows_terminal/zenburned.json b/extras/windows_terminal/zenburned.json index af13a06..9b782cb 100644 --- a/extras/windows_terminal/zenburned.json +++ b/extras/windows_terminal/zenburned.json @@ -21,4 +21,3 @@ "brightCyan": "#65B8C1", "brightWhite": "#C0AB86" } - diff --git a/extras/windows_terminal/zenwritten_dark.json b/extras/windows_terminal/zenwritten_dark.json index 49d6af5..9ae44cd 100644 --- a/extras/windows_terminal/zenwritten_dark.json +++ b/extras/windows_terminal/zenwritten_dark.json @@ -21,4 +21,3 @@ "brightCyan": "#65B8C1", "brightWhite": "#8E8E8E" } - diff --git a/extras/windows_terminal/zenwritten_light.json b/extras/windows_terminal/zenwritten_light.json index a8cdddb..cb63d6b 100644 --- a/extras/windows_terminal/zenwritten_light.json +++ b/extras/windows_terminal/zenwritten_light.json @@ -21,4 +21,3 @@ "brightCyan": "#2B747C", "brightWhite": "#5C5C5C" } - diff --git a/lua/zenbones/shipwright/runners/windows_terminal.lua b/lua/zenbones/shipwright/runners/windows_terminal.lua index 96ebc4b..430c598 100644 --- a/lua/zenbones/shipwright/runners/windows_terminal.lua +++ b/lua/zenbones/shipwright/runners/windows_terminal.lua @@ -20,24 +20,16 @@ local template = [[{ "brightPurple": "$bright_magenta", "brightCyan": "$bright_cyan", "brightWhite": "$bright_white" -} -]] +}]] local helpers = require "shipwright.transform.helpers" ---@diagnostic disable: undefined-global -- selene: allow(undefined_variable) -run( - { specs, p, term }, - transform.colorscheme_to_term_colors, - function(colors) - return vim.tbl_extend("keep", colors, { name = name }) - end, - function(colors) - local text = helpers.apply_template(template, colors) - return { text } - end, - { overwrite, string.format("extras/windows_terminal/%s.json", name) } -) +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