1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-14 02:35:41 +08:00

Fix colorscheme

This commit is contained in:
wsdjeg 2017-01-11 20:47:23 +08:00
parent 030ac0e119
commit 625f0a56e3
3 changed files with 38 additions and 29 deletions

View File

@ -88,6 +88,9 @@ let g:spacevim_colorscheme_default = 'desert'
""
" Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
" installed.
" >
" let g:spacevim_simple_mode = 1
" <
let g:spacevim_simple_mode = 0
""
" The default file manager of SpaceVim.
@ -227,6 +230,9 @@ function! SpaceVim#Layer(layer) abort
endfunction
function! SpaceVim#end() abort
if g:spacevim_simple_mode
let g:spacevim_plugin_groups = ['core']
else
for s:group in g:spacevim_plugin_groups_exclude
let s:i = index(g:spacevim_plugin_groups, s:group)
if s:i != -1
@ -253,21 +259,19 @@ function! SpaceVim#end() abort
if g:spacevim_enable_neocomplcache
let g:spacevim_autocomplete_method = 'neocomplcache'
endif
endif
""
" generate tags for SpaceVim
let help = fnamemodify(g:Config_Main_Home, ':p:h:h') . '/doc'
exe 'helptags ' . help
call SpaceVim#plugins#load()
endfunction
function! SpaceVim#default() abort
call SpaceVim#default#SetOptions()
if g:spacevim_simple_mode
call SpaceVim#default#UseSimpleMode()
else
call SpaceVim#default#SetPlugins()
endif
call SpaceVim#default#SetMappings()
endfunction

View File

@ -11,6 +11,8 @@ if count(g:spacevim_plugin_groups, 'colorscheme') && g:spacevim_colorscheme !=#
catch
exec 'colorscheme '. g:spacevim_colorscheme_default
endtry
else
exec 'colorscheme '. g:spacevim_colorscheme_default
endif
if g:spacevim_enable_cursorline == 1
set cursorline "显示当前行

View File

@ -84,6 +84,9 @@ installed.you can change it in custom config file.
*g:spacevim_simple_mode*
Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
installed.
>
let g:spacevim_simple_mode = 1
<
*g:spacevim_filemanager*
The default file manager of SpaceVim.