convert neovim to specs generator
This commit is contained in:
@@ -1,30 +1,28 @@
|
||||
local lush = require "lush"
|
||||
local hsl = lush.hsl
|
||||
local util = require "zenbones.util"
|
||||
local hsluv = lush.hsluv
|
||||
|
||||
-- modify base palette (before requiring specs)
|
||||
local palette = require "zenbones.neovim.palette"
|
||||
local base_name = util.bg_to_base_name()
|
||||
local p = require("zenbones.neovim.palette")[base_name]
|
||||
|
||||
local specs = require(base_name .. ".specs").generate(p, util.resolve_config(base_name))
|
||||
|
||||
-- extend specs using Lush
|
||||
local base_name = require("zenbones.util").bg_to_base_name()
|
||||
local theme = require(base_name)
|
||||
local specs
|
||||
if base_name == "zenbones" then
|
||||
specs = lush.extends({ theme }).with(function()
|
||||
return lush.extends({ specs }).with(function()
|
||||
return {
|
||||
helpHyperTextJump { fg = hsl "#195174" }, -- --link-color
|
||||
helpHyperTextJump { fg = hsluv "#195174" }, -- --link-color
|
||||
helpOption { helpHyperTextJump },
|
||||
markdownUrl { helpHyperTextJump },
|
||||
}
|
||||
end)
|
||||
else
|
||||
specs = lush.extends({ theme }).with(function()
|
||||
return lush.extends({ specs }).with(function()
|
||||
return {
|
||||
FloatBorder { fg = hsl "#203f57" }, -- --border-color
|
||||
helpHyperTextJump { fg = hsl "#8ec77e" }, -- --link-color
|
||||
FloatBorder { fg = hsluv "#203f57" }, -- --border-color
|
||||
helpHyperTextJump { fg = hsluv "#8ec77e" }, -- --link-color
|
||||
helpOption { helpHyperTextJump },
|
||||
markdownUrl { helpHyperTextJump },
|
||||
}
|
||||
end)
|
||||
end
|
||||
|
||||
return specs
|
||||
|
||||
Reference in New Issue
Block a user