2021-04-20 12:24:44 +00:00
|
|
|
package.path = "./lua/?/init.lua;./lua/?.lua"
|
|
|
|
|
|
|
|
local config = require("tokyonight.config")
|
|
|
|
|
|
|
|
local function write(str, fileName)
|
|
|
|
print("[write] extra/" .. fileName)
|
|
|
|
local file = io.open("extras/" .. fileName, "w")
|
|
|
|
file:write(str)
|
|
|
|
file:close()
|
|
|
|
end
|
|
|
|
|
2021-06-01 07:17:41 +00:00
|
|
|
local extras = { kitty = "conf", fish = "fish", alacritty = "yml", wezterm = "toml", tmux = "tmux" }
|
2021-05-21 12:51:45 +00:00
|
|
|
local styles = { "storm", "night", "day" }
|
2021-04-20 12:24:44 +00:00
|
|
|
|
2021-05-21 12:51:45 +00:00
|
|
|
for extra, ext in pairs(extras) do
|
|
|
|
local plugin = require("tokyonight.extra." .. extra)
|
|
|
|
for _, style in pairs(styles) do
|
|
|
|
config.style = style
|
|
|
|
write(plugin[extra](config), extra .. "_tokyonight_" .. style .. "." .. ext)
|
|
|
|
end
|
|
|
|
end
|