1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/docs/layers/colorscheme.md
2018-09-25 22:05:49 +08:00

2.5 KiB

title description
SpaceVim colorscheme layer colorscheme provides a list of colorscheme for SpaceVim, default colorscheme is gruvbox with dark theme.

Available Layers >> colorschemes

Description

This layer provides many Vim colorschemes for SpaceVim, the default colorscheme is gruvbox.

Install

This layer is disabled by default in SpaceVim.

To use this configuration layer, add this snippet to your custom configuration file.

[[layers]]
  name = "colorscheme"

Configuration

To change the colorscheme:

[options]
  colorscheme = "onedark"

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:

[options]
  colorscheme = "OceanicNext"
  colorscheme_bg = "dark"

# add custom_plugins: https://github.com/mhartington/oceanic-next
[[custom_plugins]]
  name = "mhartington/oceanic-next"
  merged = 0

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 colorscheme_bg:

[options]
  colorscheme = "onedark"
  colorscheme_bg = "dark"

Colorscheme layer support random colorscheme on startup. just load this layer with layer option random_theme

[[layers]]
  name = "colorscheme"
  random_theme = true

The frequency can be changed via frequency layer options, the available values are daily, hourly, weekly. You can also use number + unit, for example: 1h.

[[layers]]
  name = "colorscheme"
  random_theme = true
  frequency = "daily"