Files
zenbones-theme/lua/neobones/init.lua

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

27 lines
765 B
Lua
Raw Normal View History

local lush = require "lush"
2021-10-09 16:26:23 +08:00
local hsluv = lush.hsluv
2021-10-12 16:53:29 +08:00
local generator = require "zenbones.specs"
local bg = vim.opt.background:get()
local p = require("neobones.palette")[bg]
local specs = generator.generate(p, bg, generator.get_global_config("neobones", bg))
2021-10-09 16:26:23 +08:00
if bg == "light" then
2021-10-09 16:26:23 +08:00
return lush.extends({ specs }).with(function()
return {
2021-10-09 16:26:23 +08:00
helpHyperTextJump { fg = hsluv "#195174" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
end)
else
2021-10-09 16:26:23 +08:00
return lush.extends({ specs }).with(function()
return {
2021-10-09 16:26:23 +08:00
FloatBorder { fg = hsluv "#203f57" }, -- --border-color
helpHyperTextJump { fg = hsluv "#8ec77e" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
end)
end