build: selene + stylua
This commit is contained in:
@@ -9,10 +9,13 @@ function M.alacritty(config)
|
||||
|
||||
local alacrittyColors = {}
|
||||
for k, v in pairs(colors) do
|
||||
if type(v) == "string" then alacrittyColors[k] = v:gsub("^#", "0x") end
|
||||
if type(v) == "string" then
|
||||
alacrittyColors[k] = v:gsub("^#", "0x")
|
||||
end
|
||||
end
|
||||
|
||||
local alacritty = util.template([[
|
||||
local alacritty = util.template(
|
||||
[[
|
||||
# TokyoNight Alacritty Colors
|
||||
colors:
|
||||
# Default colors
|
||||
@@ -46,10 +49,11 @@ colors:
|
||||
- { index: 16, color: '${orange}' }
|
||||
- { index: 17, color: '${red1}' }
|
||||
|
||||
]], alacrittyColors)
|
||||
]],
|
||||
alacrittyColors
|
||||
)
|
||||
|
||||
return alacritty
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
|
||||
@@ -8,9 +8,14 @@ function M.fish(config)
|
||||
local colors = require("tokyonight.colors").setup(config)
|
||||
|
||||
local fishColors = {}
|
||||
for k, v in pairs(colors) do if type(v) == "string" then fishColors[k] = v:gsub("^#", "") end end
|
||||
for k, v in pairs(colors) do
|
||||
if type(v) == "string" then
|
||||
fishColors[k] = v:gsub("^#", "")
|
||||
end
|
||||
end
|
||||
|
||||
local fish = util.template([[
|
||||
local fish = util.template(
|
||||
[[
|
||||
# TokyoNight Color Palette
|
||||
set -l foreground ${fg}
|
||||
set -l selection ${bg_visual}
|
||||
@@ -45,10 +50,11 @@ function M.fish(config)
|
||||
set -g fish_pager_color_completion $foreground
|
||||
set -g fish_pager_color_description $comment
|
||||
|
||||
]], fishColors)
|
||||
]],
|
||||
fishColors
|
||||
)
|
||||
|
||||
return fish
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
|
||||
@@ -29,4 +29,3 @@ config.style = "day"
|
||||
write(kitty.kitty(config), "kitty_tokyonight_day.conf")
|
||||
write(fish.fish(config), "fish_tokyonight_day.fish")
|
||||
write(alacritty.alacritty(config), "alacritty_tokyonight_day.yml")
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@ function M.kitty(config)
|
||||
config.transform_colors = true
|
||||
local colors = require("tokyonight.colors").setup(config)
|
||||
|
||||
local kitty = util.template([[
|
||||
local kitty = util.template(
|
||||
[[
|
||||
# TokyoNight colors for Kitty
|
||||
|
||||
background ${bg}
|
||||
@@ -47,9 +48,10 @@ function M.kitty(config)
|
||||
# extended colors
|
||||
color16 ${orange}
|
||||
color17 ${red1}
|
||||
]], colors)
|
||||
]],
|
||||
colors
|
||||
)
|
||||
return kitty
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
|
||||
Reference in New Issue
Block a user