From 2c1370f3ad2d4bc742a682d3380f3c8446ee10b5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 28 Oct 2021 23:53:41 +0000 Subject: [PATCH] chore: generated vimdoc --- doc/zenbones.txt | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/doc/zenbones.txt b/doc/zenbones.txt index 72d08cd..855f4c1 100644 --- a/doc/zenbones.txt +++ b/doc/zenbones.txt @@ -112,19 +112,19 @@ g:zenbones_compat Set to `1` to turn on compatibility mode. Turned on in vim. - *zenbones-lightline* +LIGHTLINE ~ > - let g:lightline = { - \ 'colorscheme': 'zenbones', " or 'zenflesh' - \ } + let g:lightline = #{ colorscheme: 'zenbones' } " or zenflesh < - *zenbones-lualine* +LUALINE ~ > - options = { theme = 'zenbones' } -- or 'zenflesh' + require("lualine").setup { + options = { theme = "zenbones" }, -- or zenflesh + } < @@ -147,32 +147,25 @@ Here’s an example of how to extend/override some highlights. `lua/customize_zenbones.lua`: > - local function customize_zenbones() - if vim.g.colors_name ~= "zenbones" then - return - end + local lush = require "lush" + local base = require "zenbones" - local lush = require "lush" - local base = require "zenbones" - - -- Create some specs - local specs = lush.parse(function() - return { - TabLine { base.TabLine, gui = "italic" }, -- setting gui to "italic" - - end) - -- Apply specs using lush tool-chain - lush.apply(lush.compile(specs)) - end - - return customize_zenbones + -- Create some specs + local specs = lush.parse(function() + return { + TabLine { base.TabLine, gui = "italic" }, -- setting gui to "italic" + } + end) + -- Apply specs using lush tool-chain + lush.apply(lush.compile(specs)) < And then somewhere in your `init.vim`: > - autocmd VimEnter,ColorScheme * lua require("customize_zenbones")() + autocmd ColorScheme zenbones lua require "customize_zenbones" + colorscheme zenbones <