From feca125dbb2cb63d09915603f53d8bca68d25043 Mon Sep 17 00:00:00 2001 From: mcchrish Date: Wed, 20 Oct 2021 22:35:35 +0000 Subject: [PATCH] auto generate docs --- doc/zenbones.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/doc/zenbones.txt b/doc/zenbones.txt index 0997a3a..d128d5e 100644 --- a/doc/zenbones.txt +++ b/doc/zenbones.txt @@ -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. Let’s make a zenbones-flavored Gruvbox colorscheme called `gruvbones`. -Let’s define our |colorscheme| in `nvim/colors/gruvbones.lua`. And it -contains the following: +Let’s 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()