diff --git a/doc/zenbones.md b/doc/zenbones.md index 4ff19d2..1dc60eb 100644 --- a/doc/zenbones.md +++ b/doc/zenbones.md @@ -31,6 +31,15 @@ Configuration is only available for neovim. the flavor name e.g. `g:rosebones_italic_comments`. Just remember: `zenbones_` are for the `light` background and `zenflesh_` is for the dark. +Another way to set configuration is to assign a dictionary to the prefix: +```vim +let g:forestbones = #{ solid_line_nr: v:true } +``` +Or in lua: +```lua +vim.g.forestbones = { solid_line_nr = true } +``` + #### g:zenbones_lightness Change background colors lightness. Options: `'bright'`, `'dim'`. diff --git a/lua/zenbones/specs/init.lua b/lua/zenbones/specs/init.lua index 39c5742..80e050c 100644 --- a/lua/zenbones/specs/init.lua +++ b/lua/zenbones/specs/init.lua @@ -9,6 +9,10 @@ function concat_config(prefix, suffixes) end function M.get_global_config(prefix, base_bg) + if type(vim.g[prefix]) == "table" then + return vim.g[prefix] + end + local common = concat_config(prefix, { "solid_vert_split", "solid_float_border",