-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.lua
31 lines (25 loc) · 825 Bytes
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local files = require("src.files")
local themes = {
"sobrio",
"sobrio_ghost",
"sobrio_light",
"sobrio_verde",
"sobrio_verde_light",
}
for k, t in pairs(themes) do
local path = string.format("./parts/colors/%s.vim", t)
local target = string.format("./colors/%s.vim", t)
local color = files.read(path)
local rules = files.read("./parts/rules.vim")
local treesitter = files.read("./parts/tree-sitter.vim")
local fileContent = color .. "\n" .. rules .. "\n" .. treesitter
files.write(target, fileContent)
end
for k, t in pairs(themes) do
local path = string.format("./parts/colors/%s.vim", t)
local target = string.format("./colors/%s_vim.vim", t)
local color = files.read(path)
local rules = files.read("./parts/rules.vim")
local fileContent = color .. "\n" .. rules
files.write(target, fileContent)
end