farout.nvim/lua/tokyonight/extra/init.lua
2021-05-21 14:51:45 +02:00

22 lines
626 B
Lua

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
local extras = { kitty = "conf", fish = "fish", alacritty = "yml", wezterm = "toml" }
local styles = { "storm", "night", "day" }
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