create builder for neovim

This commit is contained in:
Michael Chris Lopez
2021-09-21 21:13:10 +08:00
parent 922eb2de63
commit 4fa79603c3
17 changed files with 772 additions and 15 deletions

View File

@@ -0,0 +1,30 @@
local lush = require "lush"
local hsl = lush.hsl
-- modify base palette first (before requiring specs)
local palette = require "zenbones.neovim.palette"
-- 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 {
helpHyperTextJump { fg = hsl "#195174" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
end)
else
specs = lush.extends({ theme }).with(function()
return {
FloatBorder { fg = hsl "#203f57" }, -- --border-color
helpHyperTextJump { fg = hsl "#8ec77e" }, -- --link-color
helpOption { helpHyperTextJump },
markdownUrl { helpHyperTextJump },
}
end)
end
return specs