auto generate docs
This commit is contained in:
@@ -80,7 +80,7 @@ g:zenflesh_lighten_line_nr Default: `v:false`. Lighten LineNr
|
|||||||
*zenbones-g:zenflesh_solid_float_border*
|
*zenbones-g:zenflesh_solid_float_border*
|
||||||
|
|
||||||
g:zenflesh_solid_float_border Default: `v:false`. Make FloatBorder
|
g:zenflesh_solid_float_border Default: `v:false`. Make FloatBorder
|
||||||
more distinguishable background
|
have a more distinguishable background
|
||||||
highlight.
|
highlight.
|
||||||
|
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ g:zenbones_darken_noncurrent_window Default: `v:false`. Make non-current
|
|||||||
*zenbones-g:zenflesh_lighten_noncurrent_window*
|
*zenbones-g:zenflesh_lighten_noncurrent_window*
|
||||||
|
|
||||||
g:zenflesh_lighten_noncurrent_window Default: `v:false`. Make non-current
|
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*
|
*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
|
through an example. Let’s make a zenbones-flavored Gruvbox colorscheme called
|
||||||
`gruvbones`.
|
`gruvbones`.
|
||||||
|
|
||||||
Let’s define our |colorscheme| in `nvim/colors/gruvbones.lua`. And it
|
Let’s define our |colorscheme| in `colors/gruvbones.lua`. It contains the
|
||||||
contains the following:
|
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 lush = require "lush"
|
||||||
local hsluv = lush.hsluv -- Human-friendly hsl
|
local hsluv = lush.hsluv -- Human-friendly hsl
|
||||||
@@ -225,7 +226,7 @@ contains the following:
|
|||||||
water = hsluv "#076678",
|
water = hsluv "#076678",
|
||||||
blossom = hsluv "#8f3f71",
|
blossom = hsluv "#8f3f71",
|
||||||
sky = hsluv "#427b58",
|
sky = hsluv "#427b58",
|
||||||
}, "zenbones")
|
}, bg)
|
||||||
else
|
else
|
||||||
palette = util.palette_extend({
|
palette = util.palette_extend({
|
||||||
bg = hsluv "#282828",
|
bg = hsluv "#282828",
|
||||||
@@ -236,12 +237,12 @@ contains the following:
|
|||||||
water = hsluv "#83a598",
|
water = hsluv "#83a598",
|
||||||
blossom = hsluv "#d3869b",
|
blossom = hsluv "#d3869b",
|
||||||
sky = hsluv "#83c07c",
|
sky = hsluv "#83c07c",
|
||||||
}, "zenflesh")
|
}, bg)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Generate the lush specs using the generator util
|
-- Generate the lush specs using the generator util
|
||||||
local generator = require "zenbones.specs"
|
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
|
-- Optionally extend specs using Lush
|
||||||
local specs = lush.extends({ base_specs }).with(function()
|
local specs = lush.extends({ base_specs }).with(function()
|
||||||
|
|||||||
Reference in New Issue
Block a user