mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:40:06 +08:00
Add checkers groups
This commit is contained in:
parent
e6d9a50189
commit
f8f392ac16
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
tags
|
||||
doc/tags
|
||||
*.html
|
||||
*.class
|
||||
.floo
|
||||
|
@ -76,7 +76,6 @@ let g:spacevim_wildignore = '*/tmp/*,*.so,*.swp,*.zip,*.class,tags,
|
||||
\*.ttf,*.TTF,*.png,*/target/*,
|
||||
\.git,.svn,.hg,.DS_Store'
|
||||
|
||||
|
||||
function! SpaceVim#loadCustomConfig() abort
|
||||
let custom_confs = SpaceVim#util#globpath(getcwd(), '.local.vim')
|
||||
let custom_glob_conf = expand('~/.local.vim')
|
||||
@ -90,7 +89,9 @@ endfunction
|
||||
|
||||
""
|
||||
" @public
|
||||
" Load the {layer} you want
|
||||
" Load the {layer} you want :
|
||||
" autocompletion : Make SpaceVim support autocompletion.
|
||||
" unite : Unite centric work-flow
|
||||
function! SpaceVim#Layer(layer) abort
|
||||
if index(g:spacevim_plugin_groups, a:layer) == -1
|
||||
call add(g:spacevim_plugin_groups, a:layer)
|
||||
@ -124,12 +125,17 @@ function! SpaceVim#end() abort
|
||||
if g:spacevim_enable_neocomplcache
|
||||
let g:spacevim_autocomplete_method = 'neocomplcache'
|
||||
endif
|
||||
""
|
||||
" generate tags for SpaceVim
|
||||
let help = fnamemodify(g:Config_Main_Home, ':p:h:h') . '/doc'
|
||||
exe 'helptags ' . help
|
||||
endfunction
|
||||
|
||||
|
||||
function! SpaceVim#default() abort
|
||||
call add(g:spacevim_plugin_groups, 'web')
|
||||
call add(g:spacevim_plugin_groups, 'lang')
|
||||
call add(g:spacevim_plugin_groups, 'checkers')
|
||||
call add(g:spacevim_plugin_groups, 'chat')
|
||||
call add(g:spacevim_plugin_groups, 'javascript')
|
||||
call add(g:spacevim_plugin_groups, 'ruby')
|
||||
|
@ -182,7 +182,11 @@ function! zvim#plug#enable_plug() abort
|
||||
endfunction
|
||||
|
||||
function! zvim#plug#loadPluginBefore(plugin) abort
|
||||
call zvim#util#source_rc('plugins_before/' . a:plugin)
|
||||
if matchend(a:plugin, ".vim") == len(a:plugin)
|
||||
call zvim#util#source_rc('plugins_before/' . a:plugin)
|
||||
else
|
||||
call zvim#util#source_rc('plugins_before/' . a:plugin . '.vim')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
|
@ -5,6 +5,25 @@ let s:plugins.core = [
|
||||
\ ['Shougo/vimproc.vim', {'build' : 'make'}],
|
||||
\ ]
|
||||
|
||||
let s:plugins.colorscheme = [
|
||||
\ ['morhetz/gruvbox', {'loadconf' : 1}],
|
||||
\ ['kristijanhusak/vim-hybrid-material'],
|
||||
\ ['altercation/vim-colors-solarized'],
|
||||
\ ['nanotech/jellybeans.vim'],
|
||||
\ ['mhartington/oceanic-next'],
|
||||
\ ['mhinz/vim-janah'],
|
||||
\ ['tomasr/molokai'],
|
||||
\ ['kabbamine/yowish.vim'],
|
||||
\ ]
|
||||
|
||||
let s:plugins.checkers = []
|
||||
if g:spacevim_enable_neomake
|
||||
call add(s:plugins.checkers, ['neomake/neomake',{'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}])
|
||||
else
|
||||
call add(s:plugins.checkers, ['wsdjeg/syntastic', {'on_event': 'WinEnter', 'loadconf' : 1, 'merged' : 0}])
|
||||
endif
|
||||
|
||||
|
||||
let s:plugins.unite = [
|
||||
\ ['Shougo/unite.vim',{ 'merged' : 0 , 'loadconf' : 1}],
|
||||
\ ['Shougo/neoyank.vim'],
|
||||
@ -261,17 +280,6 @@ if zvim#plug#enable_plug()
|
||||
|
||||
if count(g:spacevim_plugin_groups, 'colorscheme') "{{{
|
||||
"colorscheme
|
||||
call zvim#plug#add('morhetz/gruvbox')
|
||||
if zvim#plug#tap('gruvbox')
|
||||
call zvim#plug#defind_hooks('gruvbox')
|
||||
endif
|
||||
call zvim#plug#add('kabbamine/yowish.vim')
|
||||
call zvim#plug#add('tomasr/molokai')
|
||||
call zvim#plug#add('mhinz/vim-janah')
|
||||
call zvim#plug#add('mhartington/oceanic-next')
|
||||
call zvim#plug#add('nanotech/jellybeans.vim')
|
||||
call zvim#plug#add('altercation/vim-colors-solarized')
|
||||
call zvim#plug#add('kristijanhusak/vim-hybrid-material')
|
||||
endif
|
||||
|
||||
if count(g:spacevim_plugin_groups, 'chinese') "{{{
|
||||
@ -325,27 +333,6 @@ if zvim#plug#enable_plug()
|
||||
" use this two command to find how long the plugin take!
|
||||
"profile start vim-javacomplete2.log
|
||||
"profile! file */vim-javacomplete2/*
|
||||
if g:spacevim_enable_neomake
|
||||
call zvim#plug#add('neomake/neomake',{'merged' : 0})
|
||||
if zvim#plug#tap('neomake')
|
||||
call zvim#plug#defind_hooks('neomake')
|
||||
augroup Neomake_wsd
|
||||
au!
|
||||
autocmd! BufWritePost * Neomake
|
||||
augroup END
|
||||
endif
|
||||
else
|
||||
call zvim#plug#add('wsdjeg/syntastic', {'on_event': 'WinEnter'})
|
||||
if zvim#plug#tap('syntastic')
|
||||
call zvim#plug#defind_hooks('syntastic')
|
||||
endif
|
||||
endif
|
||||
let g:syntastic_vimlint_options = {
|
||||
\'EVL102': 1 ,
|
||||
\'EVL103': 1 ,
|
||||
\'EVL205': 1 ,
|
||||
\'EVL105': 1 ,
|
||||
\}
|
||||
call zvim#plug#add('gcmt/wildfire.vim',{'on_map' : '<Plug>(wildfire-'})
|
||||
noremap <SPACE> <Plug>(wildfire-fuel)
|
||||
vnoremap <C-SPACE> <Plug>(wildfire-water)
|
||||
|
@ -10,3 +10,9 @@ let g:syntastic_check_on_open = 0
|
||||
let g:syntastic_check_on_wq = 0
|
||||
let g:syntastic_error_symbol = get(g:, 'spacevim_error_symbol', '✖')
|
||||
let g:syntastic_warning_symbol = get(g:, 'spacevim_warning_symbol', '➤')
|
||||
let g:syntastic_vimlint_options = {
|
||||
\'EVL102': 1 ,
|
||||
\'EVL103': 1 ,
|
||||
\'EVL205': 1 ,
|
||||
\'EVL105': 1 ,
|
||||
\}
|
||||
|
4
config/plugins_before/neomake.vim
Normal file
4
config/plugins_before/neomake.vim
Normal file
@ -0,0 +1,4 @@
|
||||
augroup Neomake_wsd
|
||||
au!
|
||||
autocmd! BufWritePost * Neomake
|
||||
augroup END
|
@ -65,7 +65,8 @@ twitter.
|
||||
FUNCTIONS *SpaceVim-functions*
|
||||
|
||||
SpaceVim#Layer({layer}) *SpaceVim#Layer()*
|
||||
Load the {layer} you want
|
||||
Load the {layer} you want : autocompletion : Make SpaceVim support
|
||||
autocompletion. unite : Unite centric work-flow
|
||||
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
Loading…
Reference in New Issue
Block a user