mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:10:05 +08:00
12 lines
411 B
Plaintext
12 lines
411 B
Plaintext
Execute ( SpaceVim colorscheme ):
|
|
let g:current_colors = get(g:, 'colors_name', '')
|
|
if !(has('termguicolors') && &termguicolors) && !has('gui_running') && &t_Co != 256
|
|
Log 'SpaceVim colorscheme only support termguicolors'
|
|
else
|
|
colorscheme SpaceVim
|
|
AssertEqual get(g:, 'colors_name', ''), 'SpaceVim'
|
|
if !empty(g:current_colors)
|
|
exe 'colorscheme ' . g:current_colors
|
|
endif
|
|
endif
|