2021-09-17 19:53:39 +08:00
2021-09-16 20:04:50 +08:00
2021-09-12 06:41:36 +00:00
2021-09-17 18:25:23 +08:00
2021-09-16 20:04:50 +08:00
2021-08-27 06:55:36 +08:00
2021-08-30 09:35:14 +08:00
2021-08-27 10:05:30 +08:00
2021-08-20 16:05:43 +08:00
2021-08-24 08:02:51 +08:00
2021-09-04 13:14:01 +08:00
2021-09-17 19:44:55 +08:00

Zenflesh, Zenbones

Zenbones is a vim/neovim colorscheme designed to highlight code using contrasts and font variations. Colors are tasked only for other roles such as diagnostics, diffs, search matches.

Zenbones main image

A rock garden in Ryōan-ji.

Requirements

Primarily built for neovim but it works pretty well with vim. However here are some requirements to take full advantage of the colorscheme:

  • 24-bit RGB colors (neovim or vim compiled with +termguicolors) i.e. set termguicolors
  • Font with bold and italic
  • Terminal or GUI with bold and italic support

Installation

Example installation using packer:

use "mcchrish/zenbones.nvim"

-- Optionally install Lush. Useful if you want to extend the theme
-- e.g. create a statusline plugin theme using zenbones colors
use "rktjmp/lush.nvim"
-- See Advanced Usage section for more details

Usage

Just apply the colorscheme as usual:

colorscheme zenbones " light
colorscheme zenflesh " dark

If you want to make use of the lua version:

" Requires `neovim` and `rktjmp/lush.nvim` installed
colorscheme zenbones-lush
colorscheme zenflesh-lush

It works pretty much the same as the first one but pretty handy when extending or customizing the colors to your likings.

Configuration

Configuration is only available for zenbones-lush and zenflesh-lush.

g:zenbones_lightness

Change background colors lightness.

'bright' (unset) 'dim'
Bright lightness Default lightness Dim lightness

g:zenflesh_darkness

Change background colors darkness.

'stark' (unset) 'warm'
Stark darkness Default darkness Warm darkness

g:zenbones_solid_vert_split

g:zenflesh_solid_vert_split

Set to v:true to make vertical split more distinguishable background highlight.

g:zenbones_dim_noncurrent_window

Set to v:true to make non-current window background dimmer than Normal.

g:zenflesh_lighten_noncurrent_window

Set to v:true to make non-current window background warmer than Normal.

g:zenbones_italic_comments

g:zenflesh_italic_comments

Set to v:false to make comments not italicize.

Advanced Usage

Zenbones is pretty extensible thanks to Lush. You can easily retrieve the colors in lua:

local theme = require "zenbones" -- or zenflesh
local palette = require "zenbones.palette"

print(theme.StatusLine.bg.hex)
print(palette.blossom.darken(20).hex)

See also Lush's documentation for more options.

Other plugins support

Aside from LSP and basic Tree-sitter support, here are some plugins that are currently supported.

Other implementations

It's also possible to generate color configuration files using a template, this one for Kitty for example. Please feel free to submit a PR if you want to add some more.

Inspirations

Zenbones is heavily inspired by Verdandi and vim-yin-yang. The name came from a book called Zen Flesh, Zen Bones.

There are more similar colorschemes with few colors from this collection.

Description
No description provided
Readme MIT 1.5 MiB
Languages
Vim Script 65.9%
Lua 31.5%
Shell 2.6%