auto generate docs

This commit is contained in:
mcchrish
2021-10-20 22:35:35 +00:00
committed by GitHub Actions
parent b71f9fff53
commit feca125dbb

View File

@@ -80,7 +80,7 @@ g:zenflesh_lighten_line_nr Default: `v:false`. Lighten LineNr
*zenbones-g:zenflesh_solid_float_border*
g:zenflesh_solid_float_border Default: `v:false`. Make FloatBorder
more distinguishable background
have a more distinguishable background
highlight.
@@ -93,7 +93,7 @@ g:zenbones_darken_noncurrent_window Default: `v:false`. Make non-current
*zenbones-g:zenflesh_lighten_noncurrent_window*
g:zenflesh_lighten_noncurrent_window Default: `v:false`. Make non-current
window background warmer than _Normal_.
window background lighter than _Normal_.
*zenbones-g:zenbones_italic_comments*
@@ -200,11 +200,12 @@ defining a palette and generating a specs. Best way to demonstrate this is
through an example. Lets make a zenbones-flavored Gruvbox colorscheme called
`gruvbones`.
Lets define our |colorscheme| in `nvim/colors/gruvbones.lua`. And it
contains the following:
Lets define our |colorscheme| in `colors/gruvbones.lua`. It contains the
following:
>
vim.g.colors_name = "gruvbones" -- Required when defining a colorscheme
local colors_name = "gruvbones"
vim.g.colors_name = colors_name -- Required when defining a colorscheme
local lush = require "lush"
local hsluv = lush.hsluv -- Human-friendly hsl
@@ -225,7 +226,7 @@ contains the following:
water = hsluv "#076678",
blossom = hsluv "#8f3f71",
sky = hsluv "#427b58",
}, "zenbones")
}, bg)
else
palette = util.palette_extend({
bg = hsluv "#282828",
@@ -236,12 +237,12 @@ contains the following:
water = hsluv "#83a598",
blossom = hsluv "#d3869b",
sky = hsluv "#83c07c",
}, "zenflesh")
}, bg)
end
-- Generate the lush specs using the generator util
local generator = require "zenbones.specs"
local base_specs = generator.generate(palette, bg, generator.get_global_config("gruvbones", bg))
local base_specs = generator.generate(palette, bg, generator.get_global_config(colors_name, bg))
-- Optionally extend specs using Lush
local specs = lush.extends({ base_specs }).with(function()