4
4
Table of Contents *zenbones-table-of-contents*
5
5
6
6
1. Documentation | zenbones-documentation |
7
- - Requirement | zenbones-requirement |
8
- - Usage | zenbones-usage |
9
- - Configuration | zenbones-configuration |
10
- - Advanced Usage | zenbones-advanced-usage |
7
+ - Requirement | zenbones-documentation -requirement |
8
+ - Usage | zenbones-documentation -usage |
9
+ - Configuration | zenbones-documentation -configuration |
10
+ - Advanced Usage | zenbones-documentation -advanced-usage |
11
11
12
12
==============================================================================
13
13
1. Documentation *zenbones-documentation*
14
14
15
15
A collection of Vim/Neovim colorschemes designed to highlight code using
16
16
contrasts and font variations.
17
17
18
- REQUIREMENT *zenbones-requirement*
18
+
19
+ REQUIREMENT *zenbones-documentation-requirement*
19
20
20
21
21
22
- Neovim v0.8.0 (use v2.0.0 for older versions) or Vim 8.1
22
23
23
24
24
- USAGE *zenbones-usage*
25
+ USAGE *zenbones-documentation -usage*
25
26
26
27
Just apply the colorscheme as usual:
27
28
28
- >
29
+ >vim
29
30
set termguicolors
30
31
set background=light " or dark
31
32
@@ -47,95 +48,120 @@ Just apply the colorscheme as usual:
47
48
<
48
49
49
50
50
- CONFIGURATION *zenbones-configuration*
51
+ CONFIGURATION *zenbones-documentation -configuration*
51
52
52
53
Configuration is only available for Neovim. There are two ways to set
53
54
configuration. First:
54
55
55
- >
56
+ >vim
56
57
" vimscript
57
58
let g:zenbones_solid_line_nr = v:true
58
59
let g:zenbones_darken_comments = 45
59
60
<
60
61
61
-
62
- >
62
+ >lua
63
63
-- lua
64
64
vim.g.zenbones_solid_line_nr = true
65
65
vim.g.zenbones_darken_comments = 45
66
66
<
67
67
68
-
69
68
Second way is to set configuration is to assign a dictionary to the prefix:
70
69
71
- >
70
+ >vim
72
71
" vimscript
73
72
let g:forestbones = #{ solid_line_nr: v:true, darken_comments: 45 }
74
73
<
75
74
76
-
77
- >
75
+ >lua
78
76
-- lua
79
77
vim.g.forestbones = { solid_line_nr = true, darken_comments = 45 }
80
78
<
81
79
82
-
83
80
**Notes**: Flavors accept their own configuration by replacing the prefix with
84
81
the flavor name e.g. `g: rosebones_italic_comments ` .
85
82
86
- │ Option │Background│ Default │ Description │
87
- │lightness │light │nil │Change background colors lightness. Options: 'bright' , 'dim' . │
88
- │darkness │dark │nil │Change background colors darkness. Options: 'stark' , 'warm' . │
89
- │solid_vert_split │both │false │Solid | hl-VertSplit | background. │
90
- │solid_line_nr │both │false │Solid | hl-LineNr | background. │
91
- │solid_float_border │both │false │Make | hl-FloatBorder | have a more distinguishable background highlight.│
92
- │darken_noncurrent_window │light │false │Make non-current window background darker than _Normal_. │
93
- │lighten_noncurrent_window │dark │false │Make non-current window background lighter than _Normal_. │
94
- │italic_comments │both │true │Make comments italicize. │
95
- │darken_comments │light │38 │Percentage to darken comments relative to Normal bg. │
96
- │lighten_comments │dark │38 │Percentage to lighten comments relative to Normal bg. │
97
- │darken_non_text │light │25 │Percentage to darken | hl-NonText | relative to Normal bg. │
98
- │lighten_non_text │dark │30 │Percentage to lighten | hl-NonText | relative to Normal bg. │
99
- │darken_line_nr │light │33 │Percentage to darken | hl-LineNr | relative to Normal bg. │
100
- │lighten_line_nr │dark │35 │Percentage to lighten | hl-LineNr | relative to Normal bg. │
101
- │darken_cursor_line │light │3 │Percentage to darken | hl-CursorLine | relative to Normal bg. │
102
- │lighten_cursor_line │dark │4 │Percentage to lighten | hl-CursorLine | relative to Normal bg. │
103
- │colorize_diagnostic_underline_text│both │false │Colorize the fg of DiagnosticUnderline*. │
104
- │transparent_background │both │false │Make background transparent. │
105
-
106
-
107
- *zenbones-g:bones_compat*
108
-
109
- g:bones_compat Set to `1 ` to enable compatibility mode
110
- for all colorschemes. Enabled in Vim. To
111
- enable/disable compatibility mode for a
112
- specific theme, set the variable
113
- `g: {theme}_compat` to `0 ` or `1 ` ,
114
- e.g. `let g:zenbones_compat = 1`.
83
+ -----------------------------------------------------------------------------------------------------
84
+ Option Background Default Description
85
+ ------------------------------------ ------------ --------- -----------------------------------------
86
+ lightness light nil Change background colors lightness.
87
+ Options: 'bright' , 'dim' .
88
+
89
+ darkness dark nil Change background colors darkness.
90
+ Options: 'stark' , 'warm' .
91
+
92
+ solid_vert_split both false Solid | hl-VertSplit | background.
93
+
94
+ solid_line_nr both false Solid | hl-LineNr | background.
95
+
96
+ solid_float_border both false Make | hl-FloatBorder | have a more
97
+ distinguishable background highlight.
98
+
99
+ darken_noncurrent_window light false Make non-current window background darker
100
+ than Normal.
101
+
102
+ lighten_noncurrent_window dark false Make non-current window background
103
+ lighter than Normal.
104
+
105
+ italic_comments both true Make comments italicize.
106
+
107
+ darken_comments light 38 Percentage to darken comments relative to
108
+ Normal bg.
109
+
110
+ lighten_comments dark 38 Percentage to lighten comments relative
111
+ to Normal bg.
112
+
113
+ darken_non_text light 25 Percentage to darken | hl-NonText |
114
+ relative to Normal bg.
115
+
116
+ lighten_non_text dark 30 Percentage to lighten | hl-NonText |
117
+ relative to Normal bg.
118
+
119
+ darken_line_nr light 33 Percentage to darken | hl-LineNr | relative
120
+ to Normal bg.
121
+
122
+ lighten_line_nr dark 35 Percentage to lighten | hl-LineNr |
123
+ relative to Normal bg.
124
+
125
+ darken_cursor_line light 3 Percentage to darken | hl-CursorLine |
126
+ relative to Normal bg.
127
+
128
+ lighten_cursor_line dark 4 Percentage to lighten | hl-CursorLine |
129
+ relative to Normal bg.
130
+
131
+ colorize_diagnostic_underline_text both false Colorize the fg of DiagnosticUnderline*.
132
+
133
+ transparent_background both false Make background transparent.
134
+ -----------------------------------------------------------------------------------------------------
135
+
136
+ G:BONES_COMPAT
137
+
138
+ Set to `1 ` to enable compatibility mode for all colorschemes. Enabled in Vim.
139
+ To enable/disable compatibility mode for a specific theme, set the variable
140
+ `g: {theme}_compat` to `0 ` or `1 ` , e.g. `let g:zenbones_compat = 1`.
115
141
116
142
117
143
LIGHTLINE ~
118
144
119
- >
145
+ >vim
120
146
let g:lightline = #{ colorscheme: 'zenbones' } " or any other flavor
121
147
<
122
148
123
149
124
150
LUALINE ~
125
151
126
- >
152
+ >lua
127
153
require("lualine").setup {
128
154
options = { theme = "zenbones" }, -- or any other flavor
129
155
}
130
156
<
131
157
132
158
133
- ADVANCED USAGE *zenbones-advanced-usage*
159
+ ADVANCED USAGE *zenbones-documentation -advanced-usage*
134
160
135
161
Zenbones is pretty extensible thanks to Lush. You can easily retrieve the
136
162
colors in lua:
137
163
138
- >
164
+ >lua
139
165
local theme = require "zenbones" -- or any other flavor
140
166
local palette = require "zenbones.palette"
141
167
@@ -150,7 +176,7 @@ Here’s an example of how to extend/override some highlights.
150
176
151
177
`lua /customize_zenbones.lua ` :
152
178
153
- >
179
+ >lua
154
180
local lush = require "lush"
155
181
local base = require "zenbones"
156
182
@@ -164,18 +190,17 @@ Here’s an example of how to extend/override some highlights.
164
190
lush.apply(lush.compile(specs))
165
191
<
166
192
167
-
168
193
And then somewhere in your `init.vim ` :
169
194
170
- >
195
+ >vim
171
196
autocmd ColorScheme zenbones lua require "customize_zenbones"
172
197
colorscheme zenbones
173
198
<
174
199
175
-
176
200
See also Lush’s documentation
177
201
<https://github.com/rktjmp/lush.nvim#advanced-usage > for more options.
178
202
203
+
179
204
CREATE YOUR OWN COLORSCHEME ~
180
205
181
206
You can ultimately create your own colorscheme that is based on zenbones by
@@ -186,7 +211,7 @@ through an example. Let’s make a zenbones-flavored Gruvbox colorscheme called
186
211
Let’s define our | colorscheme | in `colors/gruvbones.lua ` . It contains the
187
212
following:
188
213
189
- >
214
+ >lua
190
215
local colors_name = "gruvbones"
191
216
vim.g.colors_name = colors_name -- Required when defining a colorscheme
192
217
@@ -243,7 +268,6 @@ following:
243
268
require("zenbones.term").apply_colors(palette)
244
269
<
245
270
246
-
247
271
And there you have it. Just call `colorscheme gruvbones` to use your new
248
272
colorscheme. It respects `&background ` and other configurations too.
249
273
0 commit comments