Files
zenbones-theme/lua/neobones/init.lua
Michael Chris Lopez a436a4cfd2 integrate selene linting
2021-10-29 15:00:22 +08:00

35 lines
1.1 KiB
Lua

local lush = require "lush"
local hsluv = lush.hsluv
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))
if bg == "light" then
return lush.extends({ specs }).with(function()
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
helpHyperTextJump { fg = hsluv "#195174" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)
else
return lush.extends({ specs }).with(function()
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
return {
FloatBorder { specs.FloatBorder, fg = hsluv "#203f57" }, -- --border-color
helpHyperTextJump { fg = hsluv "#8ec77e" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
-- selene: deny(undefined_variable)
---@diagnostic enable: undefined-global
end)
end