You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ It use offline github actions to weekly collect and update the most popular Vim/
39
39
>
40
40
> with below conditions:
41
41
>
42
-
> 1. Github stars ≥ 500 (default config only enables stars ≥ 800, please modify the `filter` option to choose any colors (see [Configuration](#-configuration))).
42
+
> 1. Github stars ≥ 500 (default config only enable ≥ 800, please modify the `filter` option to choose any colors, see [Configuration](#-configuration)).
43
43
> 2. Last git commit in 3 years.
44
44
> 3. For multiple plugins that contain the same color name, choose the one in following rules:
45
45
> 1.**Awesome-neovim** wins **vimcolorsheme**, since they usually has modern Neovim features (lua, lsp, treesitter) and support more third-party plugins.
@@ -197,12 +197,13 @@ You can use command `Colorbox` to control the player with below subcommands:
197
197
198
198
```lua
199
199
require('colorbox').setup({
200
-
-- Disable those colors you don't want from the candidates list.
200
+
-- Only enable those colors you want from the candidates list.
201
+
-- Enable color when the (all of those) filter returns `true`.
201
202
-- By default only enable primary colorscheme and GitHub stars >= 800.
202
203
filter= {
203
204
"primary",
204
205
function(color, spec)
205
-
returnspec.github_stars<800
206
+
returnspec.github_stars>=800
206
207
end,
207
208
},
208
209
@@ -247,7 +248,7 @@ require('colorbox').setup({
247
248
248
249
When choosing a colorscheme, this plugin will run following steps:
249
250
250
-
- Run the filter, disable those colors you don't want from candidates list. See [Filter](#filter).
251
+
- Run the filter, only enable those colors you want from candidates list. See [Filter](#filter).
251
252
- Run the policy at a proper timing, and choose a colorscheme. See [Timing & Policy](#timing--policy).
252
253
- Refresh the `background` option. See [Background](#background).
253
254
- Run the `colorscheme` command to actually change to the colorscheme.
@@ -277,8 +278,8 @@ There're 3 types of filter configs:
277
278
>
278
279
>Returns:
279
280
>
280
-
>-Todisableacolor, returns`true`.
281
-
>-Toenableacolor, returns`false`.
281
+
>-Toenableacolor, returns`true`.
282
+
>-Todisableacolor, returns`false`.
282
283
>
283
284
>```lua
284
285
>--- @classcolorbox.ColorSpec
@@ -295,7 +296,7 @@ There're 3 types of filter configs:
0 commit comments