build: selene + stylua

This commit is contained in:
Folke Lemaitre
2021-05-12 11:19:28 +02:00
parent fc7301ab94
commit 09cc28432f
13 changed files with 269 additions and 155 deletions

View File

@@ -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