rename terminal -> term
This commit is contained in:
@@ -9,4 +9,4 @@ local base_name = util.bg_to_base_name()
|
|||||||
-- include our theme file and pass it to lush to apply
|
-- include our theme file and pass it to lush to apply
|
||||||
require "lush"(require "zenbones.rosebones")
|
require "lush"(require "zenbones.rosebones")
|
||||||
|
|
||||||
require("zenbones.rosebones.terminal").setup(base_name)
|
require("zenbones.rosebones.term").setup(base_name)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
vim.opt.background = "light"
|
vim.opt.background = "light"
|
||||||
vim.g.colors_name = "zenbones-lush"
|
vim.g.colors_name = "zenbones-lush"
|
||||||
|
|
||||||
require("zenbones.terminal").setup()
|
require("zenbones.term").setup()
|
||||||
|
|
||||||
-- By setting our module to nil, we clear lua's cache,
|
-- By setting our module to nil, we clear lua's cache,
|
||||||
-- which means the require ahead will *always* occur.
|
-- which means the require ahead will *always* occur.
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ highlight Statement guifg=#2C363C guibg=NONE guisp=NONE gui=bold
|
|||||||
highlight StatusLine guifg=#2C363C guibg=#D1C7C3 guisp=NONE gui=NONE
|
highlight StatusLine guifg=#2C363C guibg=#D1C7C3 guisp=NONE gui=NONE
|
||||||
highlight StatusLineNC guifg=#596A76 guibg=#DAD3CF guisp=NONE gui=NONE
|
highlight StatusLineNC guifg=#596A76 guibg=#DAD3CF guisp=NONE gui=NONE
|
||||||
highlight TSConstant guifg=#44525B guibg=NONE guisp=NONE gui=bold
|
highlight TSConstant guifg=#44525B guibg=NONE guisp=NONE gui=bold
|
||||||
highlight TabLine guifg=#2C363C guibg=#D1C7C3 guisp=NONE gui=italic
|
|
||||||
highlight TabLineSel guifg=NONE guibg=NONE guisp=NONE gui=bold
|
highlight TabLineSel guifg=NONE guibg=NONE guisp=NONE gui=bold
|
||||||
highlight TelescopeMatching guifg=#88507D guibg=NONE guisp=NONE gui=bold
|
highlight TelescopeMatching guifg=#88507D guibg=NONE guisp=NONE gui=bold
|
||||||
highlight TelescopeSelectionCaret guifg=#A8334C guibg=#E6E1DF guisp=NONE gui=NONE
|
highlight TelescopeSelectionCaret guifg=#A8334C guibg=#E6E1DF guisp=NONE gui=NONE
|
||||||
@@ -212,6 +211,7 @@ highlight! link TSTag Special
|
|||||||
highlight! link TSVariable Identifier
|
highlight! link TSVariable Identifier
|
||||||
highlight! link TSVariableBuiltin Number
|
highlight! link TSVariableBuiltin Number
|
||||||
highlight! link TSWarning WarningMsg
|
highlight! link TSWarning WarningMsg
|
||||||
|
highlight! link TabLine StatusLine
|
||||||
highlight! link TabLineFill StatusLineNC
|
highlight! link TabLineFill StatusLineNC
|
||||||
highlight! link TelescopeBorder FloatBorder
|
highlight! link TelescopeBorder FloatBorder
|
||||||
highlight! link TelescopeSelection CursorLine
|
highlight! link TelescopeSelection CursorLine
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
vim.opt.background = "dark"
|
vim.opt.background = "dark"
|
||||||
vim.g.colors_name = "zenflesh-lush"
|
vim.g.colors_name = "zenflesh-lush"
|
||||||
|
|
||||||
require("zenflesh.terminal").setup()
|
require("zenflesh.term").setup()
|
||||||
|
|
||||||
-- By setting our module to nil, we clear lua's cache,
|
-- By setting our module to nil, we clear lua's cache,
|
||||||
-- which means the require ahead will *always* occur.
|
-- which means the require ahead will *always* occur.
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ highlight Statement guifg=#B4BDC3 guibg=NONE guisp=NONE gui=bold
|
|||||||
highlight StatusLine guifg=#B4BDC3 guibg=#3D3836 guisp=NONE gui=NONE
|
highlight StatusLine guifg=#B4BDC3 guibg=#3D3836 guisp=NONE gui=NONE
|
||||||
highlight StatusLineNC guifg=#CAD0D4 guibg=#312D2B guisp=NONE gui=NONE
|
highlight StatusLineNC guifg=#CAD0D4 guibg=#312D2B guisp=NONE gui=NONE
|
||||||
highlight TSConstant guifg=#979FA4 guibg=NONE guisp=NONE gui=bold
|
highlight TSConstant guifg=#979FA4 guibg=NONE guisp=NONE gui=bold
|
||||||
highlight TabLine guifg=#B4BDC3 guibg=#3D3836 guisp=NONE gui=italic
|
|
||||||
highlight TabLineSel guifg=NONE guibg=NONE guisp=NONE gui=bold
|
highlight TabLineSel guifg=NONE guibg=NONE guisp=NONE gui=bold
|
||||||
highlight TelescopeMatching guifg=#B279A7 guibg=NONE guisp=NONE gui=bold
|
highlight TelescopeMatching guifg=#B279A7 guibg=NONE guisp=NONE gui=bold
|
||||||
highlight TelescopeSelectionCaret guifg=#DE6E7C guibg=#24211F guisp=NONE gui=NONE
|
highlight TelescopeSelectionCaret guifg=#DE6E7C guibg=#24211F guisp=NONE gui=NONE
|
||||||
@@ -212,6 +211,7 @@ highlight! link TSTag Special
|
|||||||
highlight! link TSVariable Identifier
|
highlight! link TSVariable Identifier
|
||||||
highlight! link TSVariableBuiltin Number
|
highlight! link TSVariableBuiltin Number
|
||||||
highlight! link TSWarning WarningMsg
|
highlight! link TSWarning WarningMsg
|
||||||
|
highlight! link TabLine StatusLine
|
||||||
highlight! link TabLineFill StatusLineNC
|
highlight! link TabLineFill StatusLineNC
|
||||||
highlight! link TelescopeBorder FloatBorder
|
highlight! link TelescopeBorder FloatBorder
|
||||||
highlight! link TelescopeSelection CursorLine
|
highlight! link TelescopeSelection CursorLine
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ local specs = lush.extends({ theme }).with(function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
-- apply terminal colors
|
-- apply terminal colors
|
||||||
require(base_name .. ".terminal").setup()
|
require(base_name .. ".term").setup()
|
||||||
|
|
||||||
-- include our theme file and pass it to lush to apply
|
-- include our theme file and pass it to lush to apply
|
||||||
lush(specs)
|
lush(specs)
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ contains the following:
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
-- apply terminal colors
|
-- apply terminal colors
|
||||||
require(base_name .. ".terminal").setup()
|
require(base_name .. ".term").setup()
|
||||||
|
|
||||||
-- include our theme file and pass it to lush to apply
|
-- include our theme file and pass it to lush to apply
|
||||||
lush(specs)
|
lush(specs)
|
||||||
|
|||||||
@@ -2,22 +2,22 @@ local util = require "zenbones.util"
|
|||||||
|
|
||||||
local function reset_base()
|
local function reset_base()
|
||||||
package.loaded["zenbones.palette"] = nil
|
package.loaded["zenbones.palette"] = nil
|
||||||
package.loaded["zenbones.terminal"] = nil
|
package.loaded["zenbones.term"] = nil
|
||||||
package.loaded["zenbones"] = nil
|
package.loaded["zenbones"] = nil
|
||||||
|
|
||||||
package.loaded["zenflesh.palette"] = nil
|
package.loaded["zenflesh.palette"] = nil
|
||||||
package.loaded["zenflesh.terminal"] = nil
|
package.loaded["zenflesh.term"] = nil
|
||||||
package.loaded["zenflesh"] = nil
|
package.loaded["zenflesh"] = nil
|
||||||
|
|
||||||
package.loaded["zenbones.neovim.palette"] = nil
|
package.loaded["zenbones.neovim.palette"] = nil
|
||||||
package.loaded["zenbones.neovim.terminal"] = nil
|
package.loaded["zenbones.neovim.term"] = nil
|
||||||
package.loaded["zenbones.neovim"] = nil
|
package.loaded["zenbones.neovim"] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local function build()
|
local function build()
|
||||||
-- default
|
-- default
|
||||||
reset_base()
|
reset_base()
|
||||||
util.build("zenbones", require "zenbones", require "zenbones.palette", require "zenbones.terminal", {})
|
util.build("zenbones", require "zenbones", require "zenbones.palette", require("zenbones.term").colors, {})
|
||||||
|
|
||||||
-- bright
|
-- bright
|
||||||
reset_base()
|
reset_base()
|
||||||
@@ -26,7 +26,7 @@ local function build()
|
|||||||
"zenbones_bright",
|
"zenbones_bright",
|
||||||
require "zenbones",
|
require "zenbones",
|
||||||
require "zenbones.palette",
|
require "zenbones.palette",
|
||||||
require "zenbones.terminal",
|
require("zenbones.term").colors,
|
||||||
{ exclude = { "vim", "lightline", "lualine" } }
|
{ exclude = { "vim", "lightline", "lualine" } }
|
||||||
)
|
)
|
||||||
vim.api.nvim_del_var "zenbones_lightness"
|
vim.api.nvim_del_var "zenbones_lightness"
|
||||||
@@ -38,14 +38,14 @@ local function build()
|
|||||||
"zenbones_dim",
|
"zenbones_dim",
|
||||||
require "zenbones",
|
require "zenbones",
|
||||||
require "zenbones.palette",
|
require "zenbones.palette",
|
||||||
require "zenbones.terminal",
|
require("zenbones.term").colors,
|
||||||
{ exclude = { "vim", "lightline", "lualine" } }
|
{ exclude = { "vim", "lightline", "lualine" } }
|
||||||
)
|
)
|
||||||
vim.api.nvim_del_var "zenbones_lightness"
|
vim.api.nvim_del_var "zenbones_lightness"
|
||||||
|
|
||||||
-- default
|
-- default
|
||||||
reset_base()
|
reset_base()
|
||||||
util.build("zenflesh", require "zenflesh", require "zenflesh.palette", require "zenflesh.terminal", {})
|
util.build("zenflesh", require "zenflesh", require "zenflesh.palette", require("zenflesh.term").colors, {})
|
||||||
|
|
||||||
-- stark
|
-- stark
|
||||||
reset_base()
|
reset_base()
|
||||||
@@ -54,7 +54,7 @@ local function build()
|
|||||||
"zenflesh_stark",
|
"zenflesh_stark",
|
||||||
require "zenflesh",
|
require "zenflesh",
|
||||||
require "zenflesh.palette",
|
require "zenflesh.palette",
|
||||||
require "zenflesh.terminal",
|
require("zenflesh.term").colors,
|
||||||
{ exclude = { "vim", "lightline", "lualine" } }
|
{ exclude = { "vim", "lightline", "lualine" } }
|
||||||
)
|
)
|
||||||
vim.api.nvim_del_var "zenflesh_darkness"
|
vim.api.nvim_del_var "zenflesh_darkness"
|
||||||
@@ -66,7 +66,7 @@ local function build()
|
|||||||
"zenflesh_warm",
|
"zenflesh_warm",
|
||||||
require "zenflesh",
|
require "zenflesh",
|
||||||
require "zenflesh.palette",
|
require "zenflesh.palette",
|
||||||
require "zenflesh.terminal",
|
require("zenflesh.term").colors,
|
||||||
{ exclude = { "vim", "lightline", "lualine" } }
|
{ exclude = { "vim", "lightline", "lualine" } }
|
||||||
)
|
)
|
||||||
vim.api.nvim_del_var "zenflesh_darkness"
|
vim.api.nvim_del_var "zenflesh_darkness"
|
||||||
@@ -78,7 +78,7 @@ local function build()
|
|||||||
"neovim_light",
|
"neovim_light",
|
||||||
require "zenbones.neovim",
|
require "zenbones.neovim",
|
||||||
require "zenbones.neovim.palette",
|
require "zenbones.neovim.palette",
|
||||||
require "zenbones.neovim.terminal",
|
require("zenbones.neovim.term").colors.zenbones,
|
||||||
{ exclude = { "vim" } }
|
{ exclude = { "vim" } }
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ local function build()
|
|||||||
"neovim_dark",
|
"neovim_dark",
|
||||||
require "zenbones.neovim",
|
require "zenbones.neovim",
|
||||||
require "zenbones.neovim.palette",
|
require "zenbones.neovim.palette",
|
||||||
require "zenbones.neovim.terminal",
|
require("zenbones.neovim.term").colors.zenflesh,
|
||||||
{ exclude = { "vim" } }
|
{ exclude = { "vim" } }
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
local palette = require "zenbones.rosebones.palette"
|
local palette = require "zenbones.rosebones.palette"
|
||||||
|
|
||||||
local M = {}
|
local M = { colors = {} }
|
||||||
|
|
||||||
M.colors = {}
|
|
||||||
local p = palette.zenbones
|
local p = palette.zenbones
|
||||||
M.colors.zenbones = {
|
M.colors.zenbones = {
|
||||||
p.bg,
|
p.bg,
|
||||||
@@ -27,13 +27,13 @@ colors:
|
|||||||
white: '${color15}'
|
white: '${color15}'
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name, theme, palette, terminal)
|
return function(name, theme, palette, term)
|
||||||
local values = {
|
local values = {
|
||||||
name = name,
|
name = name,
|
||||||
bg = theme.Normal.bg.hex,
|
bg = theme.Normal.bg.hex,
|
||||||
fg = theme.Normal.fg.hex,
|
fg = theme.Normal.fg.hex,
|
||||||
}
|
}
|
||||||
for i, v in ipairs(terminal.colors) do
|
for i, v in ipairs(term) do
|
||||||
values["color" .. (i - 1)] = v.hex
|
values["color" .. (i - 1)] = v.hex
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -43,31 +43,31 @@ local function key_to_xml(key, color)
|
|||||||
return xml
|
return xml
|
||||||
end
|
end
|
||||||
|
|
||||||
return function(name, theme, palette, terminal)
|
return function(name, theme, palette, term)
|
||||||
local colors = {
|
local colors = {
|
||||||
["Ansi 0"] = terminal.colors[1],
|
["Ansi 0"] = term[1],
|
||||||
["Ansi 1"] = terminal.colors[2],
|
["Ansi 1"] = term[2],
|
||||||
["Ansi 2"] = terminal.colors[3],
|
["Ansi 2"] = term[3],
|
||||||
["Ansi 3"] = terminal.colors[4],
|
["Ansi 3"] = term[4],
|
||||||
["Ansi 4"] = terminal.colors[5],
|
["Ansi 4"] = term[5],
|
||||||
["Ansi 5"] = terminal.colors[6],
|
["Ansi 5"] = term[6],
|
||||||
["Ansi 6"] = terminal.colors[7],
|
["Ansi 6"] = term[7],
|
||||||
["Ansi 7"] = terminal.colors[8],
|
["Ansi 7"] = term[8],
|
||||||
["Ansi 8"] = terminal.colors[9],
|
["Ansi 8"] = term[9],
|
||||||
["Ansi 9"] = terminal.colors[10],
|
["Ansi 9"] = term[10],
|
||||||
["Ansi 10"] = terminal.colors[11],
|
["Ansi 10"] = term[11],
|
||||||
["Ansi 11"] = terminal.colors[12],
|
["Ansi 11"] = term[12],
|
||||||
["Ansi 12"] = terminal.colors[13],
|
["Ansi 12"] = term[13],
|
||||||
["Ansi 13"] = terminal.colors[14],
|
["Ansi 13"] = term[14],
|
||||||
["Ansi 14"] = terminal.colors[15],
|
["Ansi 14"] = term[15],
|
||||||
["Ansi 15"] = terminal.colors[16],
|
["Ansi 15"] = term[16],
|
||||||
Foreground = theme.Normal.fg,
|
Foreground = theme.Normal.fg,
|
||||||
Background = theme.Normal.bg,
|
Background = theme.Normal.bg,
|
||||||
Bold = terminal.colors[9],
|
Bold = term[9],
|
||||||
Cursor = theme.Cursor.bg,
|
Cursor = theme.Cursor.bg,
|
||||||
["Cursor Text"] = theme.Cursor.fg,
|
["Cursor Text"] = theme.Cursor.fg,
|
||||||
["Cursor Guide"] = theme.CursorLine.bg,
|
["Cursor Guide"] = theme.CursorLine.bg,
|
||||||
Link = terminal.colors[13],
|
Link = term[13],
|
||||||
Selection = theme.Visual.bg,
|
Selection = theme.Visual.bg,
|
||||||
["Selected Text"] = theme.Normal.fg,
|
["Selected Text"] = theme.Normal.fg,
|
||||||
Badge = theme.Comment.fg,
|
Badge = theme.Comment.fg,
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ color14 ${color14}
|
|||||||
color15 ${color15}
|
color15 ${color15}
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name, theme, palette, terminal)
|
return function(name, theme, palette, term)
|
||||||
local bg = theme.Normal.bg.hex
|
local bg = theme.Normal.bg.hex
|
||||||
local fg = theme.Normal.fg.hex
|
local fg = theme.Normal.fg.hex
|
||||||
local values = {
|
local values = {
|
||||||
@@ -49,14 +49,14 @@ return function(name, theme, palette, terminal)
|
|||||||
foreground = fg,
|
foreground = fg,
|
||||||
selection_background = theme.Visual.bg.hex,
|
selection_background = theme.Visual.bg.hex,
|
||||||
selection_foreground = fg,
|
selection_foreground = fg,
|
||||||
url_color = terminal.colors[13].hex,
|
url_color = term[13].hex,
|
||||||
cursor = fg,
|
cursor = fg,
|
||||||
active_tab_background = theme.Search.bg.hex,
|
active_tab_background = theme.Search.bg.hex,
|
||||||
active_tab_foreground = fg,
|
active_tab_foreground = fg,
|
||||||
inactive_tab_background = theme.StatusLine.bg.hex,
|
inactive_tab_background = theme.StatusLine.bg.hex,
|
||||||
inactive_tab_foreground = fg,
|
inactive_tab_foreground = fg,
|
||||||
}
|
}
|
||||||
for i, v in ipairs(terminal.colors) do
|
for i, v in ipairs(term) do
|
||||||
values["color" .. (i - 1)] = v.hex
|
values["color" .. (i - 1)] = v.hex
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ set -g clock-mode-colour '${color5}'
|
|||||||
set -g mode-style fg='${color0}',bg='${selection_background}'
|
set -g mode-style fg='${color0}',bg='${selection_background}'
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name, theme, palette, terminal)
|
return function(name, theme, palette, term)
|
||||||
local values = {
|
local values = {
|
||||||
selection_background = theme.Visual.bg.hex,
|
selection_background = theme.Visual.bg.hex,
|
||||||
}
|
}
|
||||||
for i, v in ipairs(terminal.colors) do
|
for i, v in ipairs(term) do
|
||||||
values["color" .. (i - 1)] = v.hex
|
values["color" .. (i - 1)] = v.hex
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ ${vimcolors}
|
|||||||
]]
|
]]
|
||||||
|
|
||||||
local lush = require "lush"
|
local lush = require "lush"
|
||||||
return function(name, theme, palette, terminal)
|
return function(name, theme, palette, term)
|
||||||
local termcolors = ""
|
local termcolors = ""
|
||||||
for i, v in ipairs(terminal.colors) do
|
for i, v in ipairs(term) do
|
||||||
termcolors = termcolors .. string.format("let g:terminal_color_%s = '%s'\n", (i - 1), v.hex)
|
termcolors = termcolors .. string.format("let g:terminal_color_%s = '%s'\n", (i - 1), v.hex)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ ansi = ["${color0}", "${color1}", "${color2}", "${color3}", "${color4}", "${colo
|
|||||||
brights = ["${color8}", "${color9}", "${color10}", "${color11}", "${color12}", "${color13}", "${color14}", "${color15}"]
|
brights = ["${color8}", "${color9}", "${color10}", "${color11}", "${color12}", "${color13}", "${color14}", "${color15}"]
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name, theme, palette, terminal)
|
return function(name, theme, palette, term)
|
||||||
local name = name:sub(1, 1):upper() .. name:sub(2)
|
local name = name:sub(1, 1):upper() .. name:sub(2)
|
||||||
|
|
||||||
local values = {
|
local values = {
|
||||||
@@ -26,7 +26,7 @@ return function(name, theme, palette, terminal)
|
|||||||
selection_bg = theme.Visual.bg.hex,
|
selection_bg = theme.Visual.bg.hex,
|
||||||
selection_fg = theme.Normal.fg.hex,
|
selection_fg = theme.Normal.fg.hex,
|
||||||
}
|
}
|
||||||
for i, v in ipairs(terminal.colors) do
|
for i, v in ipairs(term) do
|
||||||
values["color" .. (i - 1)] = v.hex
|
values["color" .. (i - 1)] = v.hex
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user