mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-15 19:45:46 +08:00
Fix colorscheme
This commit is contained in:
parent
030ac0e119
commit
625f0a56e3
@ -88,6 +88,9 @@ let g:spacevim_colorscheme_default = 'desert'
|
|||||||
""
|
""
|
||||||
" Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
|
" Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
|
||||||
" installed.
|
" installed.
|
||||||
|
" >
|
||||||
|
" let g:spacevim_simple_mode = 1
|
||||||
|
" <
|
||||||
let g:spacevim_simple_mode = 0
|
let g:spacevim_simple_mode = 0
|
||||||
""
|
""
|
||||||
" The default file manager of SpaceVim.
|
" The default file manager of SpaceVim.
|
||||||
@ -227,47 +230,48 @@ function! SpaceVim#Layer(layer) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#end() abort
|
function! SpaceVim#end() abort
|
||||||
for s:group in g:spacevim_plugin_groups_exclude
|
if g:spacevim_simple_mode
|
||||||
let s:i = index(g:spacevim_plugin_groups, s:group)
|
let g:spacevim_plugin_groups = ['core']
|
||||||
if s:i != -1
|
|
||||||
call remove(g:spacevim_plugin_groups, s:i)
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
if g:spacevim_vim_help_language ==# 'cn'
|
|
||||||
call add(g:spacevim_plugin_groups, 'chinese')
|
|
||||||
endif
|
|
||||||
if g:spacevim_use_colorscheme==1
|
|
||||||
call add(g:spacevim_plugin_groups, 'colorscheme')
|
|
||||||
endif
|
|
||||||
|
|
||||||
if has('nvim')
|
|
||||||
let g:spacevim_autocomplete_method = 'deoplete'
|
|
||||||
elseif has('lua')
|
|
||||||
let g:spacevim_autocomplete_method = 'neocomplete'
|
|
||||||
else
|
else
|
||||||
let g:spacevim_autocomplete_method = 'neocomplcache'
|
for s:group in g:spacevim_plugin_groups_exclude
|
||||||
endif
|
let s:i = index(g:spacevim_plugin_groups, s:group)
|
||||||
if g:spacevim_enable_ycm
|
if s:i != -1
|
||||||
let g:spacevim_autocomplete_method = 'ycm'
|
call remove(g:spacevim_plugin_groups, s:i)
|
||||||
endif
|
endif
|
||||||
if g:spacevim_enable_neocomplcache
|
endfor
|
||||||
let g:spacevim_autocomplete_method = 'neocomplcache'
|
if g:spacevim_vim_help_language ==# 'cn'
|
||||||
|
call add(g:spacevim_plugin_groups, 'chinese')
|
||||||
|
endif
|
||||||
|
if g:spacevim_use_colorscheme==1
|
||||||
|
call add(g:spacevim_plugin_groups, 'colorscheme')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('nvim')
|
||||||
|
let g:spacevim_autocomplete_method = 'deoplete'
|
||||||
|
elseif has('lua')
|
||||||
|
let g:spacevim_autocomplete_method = 'neocomplete'
|
||||||
|
else
|
||||||
|
let g:spacevim_autocomplete_method = 'neocomplcache'
|
||||||
|
endif
|
||||||
|
if g:spacevim_enable_ycm
|
||||||
|
let g:spacevim_autocomplete_method = 'ycm'
|
||||||
|
endif
|
||||||
|
if g:spacevim_enable_neocomplcache
|
||||||
|
let g:spacevim_autocomplete_method = 'neocomplcache'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
""
|
""
|
||||||
" generate tags for SpaceVim
|
" generate tags for SpaceVim
|
||||||
let help = fnamemodify(g:Config_Main_Home, ':p:h:h') . '/doc'
|
let help = fnamemodify(g:Config_Main_Home, ':p:h:h') . '/doc'
|
||||||
exe 'helptags ' . help
|
exe 'helptags ' . help
|
||||||
|
|
||||||
call SpaceVim#plugins#load()
|
call SpaceVim#plugins#load()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! SpaceVim#default() abort
|
function! SpaceVim#default() abort
|
||||||
call SpaceVim#default#SetOptions()
|
call SpaceVim#default#SetOptions()
|
||||||
if g:spacevim_simple_mode
|
call SpaceVim#default#SetPlugins()
|
||||||
call SpaceVim#default#UseSimpleMode()
|
|
||||||
else
|
|
||||||
call SpaceVim#default#SetPlugins()
|
|
||||||
endif
|
|
||||||
call SpaceVim#default#SetMappings()
|
call SpaceVim#default#SetMappings()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@ if count(g:spacevim_plugin_groups, 'colorscheme') && g:spacevim_colorscheme !=#
|
|||||||
catch
|
catch
|
||||||
exec 'colorscheme '. g:spacevim_colorscheme_default
|
exec 'colorscheme '. g:spacevim_colorscheme_default
|
||||||
endtry
|
endtry
|
||||||
|
else
|
||||||
|
exec 'colorscheme '. g:spacevim_colorscheme_default
|
||||||
endif
|
endif
|
||||||
if g:spacevim_enable_cursorline == 1
|
if g:spacevim_enable_cursorline == 1
|
||||||
set cursorline "显示当前行
|
set cursorline "显示当前行
|
||||||
|
@ -84,6 +84,9 @@ installed.you can change it in custom config file.
|
|||||||
*g:spacevim_simple_mode*
|
*g:spacevim_simple_mode*
|
||||||
Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
|
Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
|
||||||
installed.
|
installed.
|
||||||
|
>
|
||||||
|
let g:spacevim_simple_mode = 1
|
||||||
|
<
|
||||||
|
|
||||||
*g:spacevim_filemanager*
|
*g:spacevim_filemanager*
|
||||||
The default file manager of SpaceVim.
|
The default file manager of SpaceVim.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user