Files

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

35 lines
1.1 KiB
Lua
Raw Permalink 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"
2022-10-22 09:32:57 +08:00
local bg = vim.o.background
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()
2021-10-29 15:00:22 +08:00
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
2021-10-09 16:26:23 +08:00
helpHyperTextJump { fg = hsluv "#195174" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
2021-10-29 15:00:22 +08:00
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)
else
2021-10-09 16:26:23 +08:00
return lush.extends({ specs }).with(function()
2021-10-29 15:00:22 +08:00
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
2021-10-20 17:14:48 +08:00
FloatBorder { specs.FloatBorder, fg = hsluv "#203f57" }, -- --border-color
2021-10-09 16:26:23 +08:00
helpHyperTextJump { fg = hsluv "#8ec77e" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
2021-10-29 15:00:22 +08:00
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)
end