2017-12-02 23:23:58 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim colorscheme layer"
|
2017-12-06 20:20:04 +08:00
|
|
|
description: "colorscheme provides a list of colorscheme for SpaceVim, default colorscheme is gruvbox with dark theme."
|
2017-12-02 23:23:58 +08:00
|
|
|
---
|
|
|
|
|
2018-06-23 14:37:41 +08:00
|
|
|
# [Available Layers](../) >> colorschemes
|
2017-05-12 20:06:20 +08:00
|
|
|
|
2018-05-23 21:33:16 +08:00
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Description](#description)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Configuration](#configuration)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
2018-03-25 18:01:48 +08:00
|
|
|
## Description
|
|
|
|
|
2017-05-30 10:46:57 +08:00
|
|
|
This layer provides many Vim colorschemes for SpaceVim, the default colorscheme is gruvbox.
|
|
|
|
|
2018-03-25 18:01:48 +08:00
|
|
|
## Install
|
|
|
|
|
|
|
|
This layer is disabled by default in SpaceVim.
|
|
|
|
|
2018-05-23 21:33:16 +08:00
|
|
|
To use this configuration layer, add this snippet to your custom configuration file.
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[[layers]]
|
2018-06-03 10:40:11 +08:00
|
|
|
name = "colorscheme"
|
2018-05-23 21:33:16 +08:00
|
|
|
```
|
2018-03-25 18:01:48 +08:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2017-05-30 10:46:57 +08:00
|
|
|
To change the colorscheme:
|
2017-12-02 23:23:58 +08:00
|
|
|
|
2018-05-23 21:33:16 +08:00
|
|
|
```toml
|
|
|
|
[options]
|
|
|
|
colorscheme = "onedark"
|
2017-05-12 20:06:20 +08:00
|
|
|
```
|
2017-05-30 10:46:57 +08:00
|
|
|
|
2018-09-16 13:05:35 +08:00
|
|
|
Colorscheme list
|
|
|
|
|
|
|
|
| Name | dark | light | term | gui | statusline |
|
|
|
|
| ------------ | ---- | ----- | ---- | --- | ---------- |
|
|
|
|
| molokai | yes | no | yes | yes | yes |
|
|
|
|
| onedark | yes | no | yes | yes | yes |
|
|
|
|
| jellybeans | yes | no | yes | yes | yes |
|
|
|
|
| one | yes | yes | yes | yes | yes |
|
|
|
|
| nord | yes | no | yes | yes | yes |
|
|
|
|
| gruvbox | yes | yes | yes | yes | yes |
|
|
|
|
| NeoSolarized | yes | yes | yes | yes | yes |
|
|
|
|
| hybrid | yes | yes | yes | yes | yes |
|
|
|
|
| material | yes | yes | yes | yes | yes |
|
|
|
|
| SpaceVim | yes | yes | yes | yes | yes |
|
|
|
|
|
|
|
|
By default this layer only include above colorschemes, if you want to use other colorscheme which
|
|
|
|
is available on github, you can use `custom_plugins` section in configuration file, for examples:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[options]
|
|
|
|
colorscheme = "OceanicNext"
|
|
|
|
colorscheme_bg = "dark"
|
|
|
|
|
|
|
|
# add custom_plugins: https://github.com/mhartington/oceanic-next
|
|
|
|
[[custom_plugins]]
|
|
|
|
name = "mhartington/oceanic-next"
|
|
|
|
merged = 0
|
|
|
|
```
|
2018-03-25 18:01:48 +08:00
|
|
|
|
|
|
|
|
2017-05-30 10:46:57 +08:00
|
|
|
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
|
2018-05-23 21:33:16 +08:00
|
|
|
`colorscheme_bg`:
|
2018-03-25 18:01:48 +08:00
|
|
|
|
2018-05-23 21:33:16 +08:00
|
|
|
```toml
|
|
|
|
[options]
|
|
|
|
colorscheme = "onedark"
|
2018-06-03 10:40:11 +08:00
|
|
|
colorscheme_bg = "dark"
|
2017-05-30 10:46:57 +08:00
|
|
|
```
|
2017-05-30 11:21:47 +08:00
|
|
|
|
2018-03-25 18:01:48 +08:00
|
|
|
colorscheme layer support random colorscheme on startup. just load this layer with layer option `random-theme`
|
|
|
|
|
2018-05-23 21:33:16 +08:00
|
|
|
```toml
|
|
|
|
[[layers]]
|
2018-06-03 10:40:11 +08:00
|
|
|
name = "colorscheme"
|
2018-05-23 21:33:16 +08:00
|
|
|
random-theme = true
|
2018-03-25 18:01:48 +08:00
|
|
|
```
|
2018-09-16 13:05:35 +08:00
|
|
|
|