move templates in separate lua files
This commit is contained in:
22
lua/zenbones/build/kitty.lua
Normal file
22
lua/zenbones/build/kitty.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
local theme = require "zenbones"
|
||||
local terminal = require "zenbones.terminal"
|
||||
|
||||
local bg = theme.Normal.bg.hex
|
||||
local fg = theme.Normal.fg.hex
|
||||
local specs = {
|
||||
background = bg,
|
||||
foreground = fg,
|
||||
selection_background = theme.Visual.bg.hex,
|
||||
selection_foreground = fg,
|
||||
url_color = terminal.colors[14].hex,
|
||||
cursor = fg,
|
||||
active_tab_background = theme.Search.bg.hex,
|
||||
active_tab_foreground = fg,
|
||||
inactive_tab_background = theme.StatusLine.bg.hex,
|
||||
inactive_tab_foreground = fg,
|
||||
}
|
||||
for i, v in ipairs(terminal.colors) do
|
||||
specs["color" .. (i - 1)] = v.hex
|
||||
end
|
||||
|
||||
return { "extras/kitty/zenbones.conf", specs }
|
||||
19
lua/zenbones/build/vim.lua
Normal file
19
lua/zenbones/build/vim.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
local lush = require "lush"
|
||||
local theme = require "zenbones"
|
||||
local terminal = require "zenbones.terminal"
|
||||
|
||||
local termcolors = ""
|
||||
for i, v in ipairs(terminal.colors) do
|
||||
termcolors = termcolors .. string.format("let g:terminal_color_%s = '%s'\n", (i - 1), v.hex)
|
||||
end
|
||||
|
||||
-- Compile lush table, concatenate to a single string, and remove blend property
|
||||
local vimcolors = table.concat(vim.fn.sort(lush.compile(theme, { exclude_keys = { "blend" } })), "\n")
|
||||
|
||||
return {
|
||||
"colors/zenbones.vim",
|
||||
{
|
||||
termcolors = termcolors,
|
||||
vimcolors = vimcolors,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user