Files
zenbones-theme/colors/neovim.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.4 KiB
Lua
Raw Normal View History

2021-09-21 19:16:15 +08:00
vim.g.colors_name = "neovim"
2021-09-21 19:27:49 +08:00
local base_name = vim.opt.background:get() == "light" and "zenbones" or "zenflesh"
2021-09-21 19:16:15 +08:00
2021-09-21 19:36:12 +08:00
-- reset base palette and specs
2021-09-21 19:27:49 +08:00
package.loaded[base_name .. ".palette"] = nil
package.loaded[base_name] = nil
2021-09-21 19:16:15 +08:00
local lush = require "lush"
local hsluv = lush.hsluv
2021-09-21 19:36:12 +08:00
-- modify base palette first (before requiring specs)
2021-09-21 19:27:49 +08:00
local palette = require(base_name .. ".palette")
if base_name == "zenbones" then
2021-09-21 19:16:15 +08:00
palette.bg = hsluv "#e7eee8" -- --bg-color
palette.fg = hsluv "#202e18" -- --accent-color
palette.leaf = palette.leaf.sa(24).li(8) -- Need to make green more prominent
else
palette.bg = hsluv "#0f191f" -- --bg-color
palette.fg = hsluv "#c7d6d0" -- --fg-color
palette.leaf = hsluv "#8fff6d" -- --accent-color
end
2021-09-21 19:36:12 +08:00
-- extend specs using Lush
2021-09-21 19:27:49 +08:00
local theme = require(base_name)
2021-09-21 19:16:15 +08:00
local specs
2021-09-21 19:27:49 +08:00
if base_name == "zenbones" then
2021-09-21 19:16:15 +08:00
specs = lush.extends({ theme }).with(function()
return {
helpHyperTextJump { fg = hsluv "#195174" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
end)
else
specs = lush.extends({ theme }).with(function()
return {
FloatBorder { fg = hsluv "#203f57" }, -- --border-color
helpHyperTextJump { fg = hsluv "#8ec77e" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
end)
end
2021-09-21 19:27:49 +08:00
require(base_name .. ".terminal").setup()
2021-09-21 19:16:15 +08:00
-- include our theme file and pass it to lush to apply
lush(specs)