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

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

29 lines
803 B
Lua
Raw Normal View History

local lush = require "lush"
2021-10-09 16:26:23 +08:00
local util = require "zenbones.util"
local hsluv = lush.hsluv
local bg = vim.opt.background:get()
local p = require("neobones.palette")[bg]
local generator = require "zenbones.specs"
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