1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Update colorscheme layer doc

This commit is contained in:
wsdjeg 2018-05-23 21:33:16 +08:00
parent 0c423d7167
commit 8685d2ff49

View File

@ -5,6 +5,14 @@ description: "colorscheme provides a list of colorscheme for SpaceVim, default c
# [SpaceVim Layers:](https://spacevim.org/layers) colorscheme # [SpaceVim Layers:](https://spacevim.org/layers) colorscheme
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
- [Configuration](#configuration)
<!-- vim-markdown-toc -->
## Description ## Description
This layer provides many Vim colorschemes for SpaceVim, the default colorscheme is gruvbox. This layer provides many Vim colorschemes for SpaceVim, the default colorscheme is gruvbox.
@ -13,14 +21,20 @@ This layer provides many Vim colorschemes for SpaceVim, the default colorscheme
This layer is disabled by default in SpaceVim. This layer is disabled by default in SpaceVim.
To use this configuration layer, add `call SpaceVim#layers#load('colorscheme')` to your custom configuration file. To use this configuration layer, add this snippet to your custom configuration file.
```toml
[[layers]]
name = 'colorscheme'
```
## Configuration ## Configuration
To change the colorscheme: To change the colorscheme:
```vim ```toml
let g:spacevim_colorscheme = 'onedark' [options]
colorscheme = "onedark"
``` ```
**List colorschemes** **List colorschemes**
@ -36,18 +50,18 @@ let g:spacevim_colorscheme = 'onedark'
Some colorschemes offer dark and light styles. Most of them are set by changing Some colorschemes offer dark and light styles. Most of them are set by changing
Vim background color. SpaceVim support to change the background color with Vim background color. SpaceVim support to change the background color with
`g:spacevim_colorscheme_bg`: `colorscheme_bg`:
```vim ```toml
let g:spacevim_colorscheme_bg = 'dark' [options]
colorscheme = "onedark"
colorscheme_bg = 'dark'
``` ```
colorscheme layer support random colorscheme on startup. just load this layer with layer option `random-theme` colorscheme layer support random colorscheme on startup. just load this layer with layer option `random-theme`
```vim ```toml
call SpaceVim#layers#load('colorscheme', { [[layers]]
\ 'random-theme' : 1, name = 'colorscheme'
\ }) random-theme = true
``` ```
## Contributing