mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
Imporve layers
This commit is contained in:
parent
70044cac1d
commit
10719fc147
@ -1,5 +1,5 @@
|
||||
function! SpaceVim#layers#autocomplete#plugins() abort
|
||||
return [
|
||||
let plugins = [
|
||||
\ ['honza/vim-snippets', {'on_i' : 1, 'loadconf_before' : 1}],
|
||||
\ ['Shougo/neco-syntax', { 'on_i' : 1}],
|
||||
\ ['ujihisa/neco-look', { 'on_i' : 1}],
|
||||
@ -9,4 +9,25 @@ function! SpaceVim#layers#autocomplete#plugins() abort
|
||||
\ ['Shougo/neosnippet-snippets', { 'merged' : 0}],
|
||||
\ ['Shougo/neopairs.vim', { 'on_i' : 1}],
|
||||
\ ]
|
||||
if g:spacevim_autocomplete_method ==# 'ycm'
|
||||
call add(plugins, ['SirVer/ultisnips', {'loadconf_before' : 1}])
|
||||
call add(plugins, ['ervandew/supertab', {'loadconf_before' : 1}])
|
||||
call add(plugins, ['Valloric/YouCompleteMe', {'loadconf_before' : 1}])
|
||||
elseif g:spacevim_autocomplete_method ==# 'neocomplete' "{{{
|
||||
call add(plugins, ['Shougo/neocomplete', {
|
||||
\ 'on_i' : 1,
|
||||
\ 'loadconf' : 1,
|
||||
\ }])
|
||||
elseif g:spacevim_autocomplete_method ==# 'neocomplcache' "{{{
|
||||
call add(plugins, ['Shougo/neocomplcache.vim', {
|
||||
\ 'on_i' : 1,
|
||||
\ 'loadconf' : 1,
|
||||
\ }])
|
||||
elseif g:spacevim_autocomplete_method ==# 'deoplete'
|
||||
call add(plugins, ['Shougo/deoplete.nvim', {
|
||||
\ 'on_i' : 1,
|
||||
\ 'loadconf' : 1,
|
||||
\ }])
|
||||
endif
|
||||
return plugins
|
||||
endfunction
|
||||
|
5
autoload/SpaceVim/layers/chat.vim
Normal file
5
autoload/SpaceVim/layers/chat.vim
Normal file
@ -0,0 +1,5 @@
|
||||
function! SpaceVim#layers#chat#plugins() abort
|
||||
return [
|
||||
\ ['Shougo/denite.nvim',{ 'merged' : 0, 'loadconf' : 1}],
|
||||
\ ]
|
||||
endfunction
|
@ -0,0 +1,11 @@
|
||||
function! SpaceVim#layers#checkers#plugins() abort
|
||||
let plugins = []
|
||||
|
||||
if g:spacevim_enable_neomake
|
||||
call add(plugins, ['neomake/neomake', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}])
|
||||
else
|
||||
call add(plugins, ['wsdjeg/syntastic', {'on_event': 'WinEnter', 'loadconf' : 1, 'merged' : 0}])
|
||||
endif
|
||||
|
||||
return plugins
|
||||
endfunction
|
29
autoload/SpaceVim/layers/ctrlp.vim
Normal file
29
autoload/SpaceVim/layers/ctrlp.vim
Normal file
@ -0,0 +1,29 @@
|
||||
function! SpaceVim#layers#ctrlp#plugins() abort
|
||||
let plugins = [
|
||||
\ ['ctrlpvim/ctrlp.vim', {'loadconf' : 1}],
|
||||
\ ['voronkovich/ctrlp-nerdtree.vim', { 'on_cmd' : 'CtrlPNerdTree'}],
|
||||
\ ['h14i/vim-ctrlp-buftab', { 'on_cmd' : 'CtrlPBufTab'}],
|
||||
\ ['vim-scripts/ctrlp-cmdpalette', { 'on_cmd' : 'CtrlPCmdPalette'}],
|
||||
\ ['mattn/ctrlp-windowselector', { 'on_cmd' : 'CtrlPWindowSelector'}],
|
||||
\ ['the9ball/ctrlp-gtags', { 'on_cmd' : ['CtrlPGtagsX','CtrlPGtagsF','CtrlPGtagsR']}],
|
||||
\ ['thiderman/ctrlp-project', { 'on_cmd' : 'CtrlPProject'}],
|
||||
\ ['mattn/ctrlp-google', { 'on_cmd' : 'CtrlPGoogle'}],
|
||||
\ ['ompugao/ctrlp-history', { 'on_cmd' : ['CtrlPCmdHistory','CtrlPSearchHistory']}],
|
||||
\ ['pielgrzym/ctrlp-sessions', { 'on_cmd' : ['CtrlPSessions','MkS']}],
|
||||
\ ['tacahiroy/ctrlp-funky', { 'on_cmd' : 'CtrlPFunky'}],
|
||||
\ ['mattn/ctrlp-launcher', { 'on_cmd' : 'CtrlPLauncher'}],
|
||||
\ ['sgur/ctrlp-extensions.vim', { 'on_cmd' : ['CtrlPCmdline','CtrlPMenu','CtrlPYankring']}],
|
||||
\ ['FelikZ/ctrlp-py-matcher'],
|
||||
\ ['lambdalisue/vim-gista-ctrlp', { 'on_cmd' : 'CtrlPGista'}],
|
||||
\ ['elentok/ctrlp-objects.vim', { 'on_cmd' : [
|
||||
\'CtrlPModels',
|
||||
\'CtrlPViews',
|
||||
\'CtrlPControllers',
|
||||
\'CtrlPTemplates',
|
||||
\'CtrlPPresenters']}],
|
||||
\ ]
|
||||
if !has('nvim')
|
||||
call add(plugins, ['wsdjeg/ctrlp-unity3d-docs', { 'on_cmd' : 'CtrlPUnity3DDocs'}])
|
||||
endif
|
||||
return plugins
|
||||
endfunction
|
5
autoload/SpaceVim/layers/denite.vim
Normal file
5
autoload/SpaceVim/layers/denite.vim
Normal file
@ -0,0 +1,5 @@
|
||||
function! SpaceVim#layers#denite#plugins() abort
|
||||
return [
|
||||
\ ['Shougo/denite.nvim',{ 'merged' : 0, 'loadconf' : 1}],
|
||||
\ ]
|
||||
endfunction
|
45
autoload/SpaceVim/layers/lang.vim
Normal file
45
autoload/SpaceVim/layers/lang.vim
Normal file
@ -0,0 +1,45 @@
|
||||
function! SpaceVim#layers#lang#plugins() abort
|
||||
let plugins = [
|
||||
\ ['zchee/deoplete-jedi', { 'on_ft' : 'python'}],
|
||||
\ ['Shougo/neosnippet.vim', { 'on_i' : 1 , 'on_ft' : 'neosnippet', 'loadconf' : 1}],
|
||||
\ ['davidhalter/jedi-vim', { 'on_ft' : 'python'}],
|
||||
\ ['m2mdas/phpcomplete-extended', { 'on_ft' : 'php'}],
|
||||
\ ['groenewege/vim-less', { 'on_ft' : ['less']}],
|
||||
\ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}],
|
||||
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],
|
||||
\ ['ap/vim-css-color', { 'on_ft' : ['css','scss','sass','less','styl']}],
|
||||
\ ['othree/html5.vim', { 'on_ft' : ['html']}],
|
||||
\ ['wavded/vim-stylus', { 'on_ft' : ['styl']}],
|
||||
\ ['digitaltoad/vim-jade', { 'on_ft' : ['jade']}],
|
||||
\ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}],
|
||||
\ ['Valloric/MatchTagAlways', { 'on_ft' : ['html' , 'xhtml' , 'xml' , 'jinja']}],
|
||||
\ ['pangloss/vim-javascript', { 'on_ft' : ['javascript']}],
|
||||
\ ['maksimr/vim-jsbeautify', { 'on_ft' : ['javascript']}],
|
||||
\ ['leafgarland/typescript-vim', { 'on_ft' : ['typescript']}],
|
||||
\ ['kchmck/vim-coffee-script', { 'on_ft' : ['coffee']}],
|
||||
\ ['mmalecki/vim-node.js', { 'on_ft' : ['javascript']}],
|
||||
\ ['leshill/vim-json', { 'on_ft' : ['javascript','json']}],
|
||||
\ ['othree/javascript-libraries-syntax.vim', { 'on_ft' : ['javascript','coffee','ls','typescript']}],
|
||||
\ ['wsdjeg/vim-dict', { 'on_ft' : 'java'}],
|
||||
\ ['wsdjeg/java_getset.vim', { 'on_ft' : 'java'}],
|
||||
\ ['wsdjeg/JavaUnit.vim', { 'on_ft' : 'java'}],
|
||||
\ ['vim-jp/vim-java', { 'on_ft' : 'java'}],
|
||||
\ ['syngan/vim-vimlint', { 'on_ft' : 'vim'}],
|
||||
\ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}],
|
||||
\ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}],
|
||||
\ ['plasticboy/vim-markdown', { 'on_ft' : 'markdown'}],
|
||||
\ ['elixir-lang/vim-elixir', { 'on_ft' : 'elixir'}],
|
||||
\ ['racer-rust/vim-racer', { 'on_ft' : 'rust'}],
|
||||
\ ['PotatoesMaster/i3-vim-syntax', { 'on_ft' : 'i3'}],
|
||||
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
|
||||
\ ['lervag/vimtex', { 'on_ft' : 'tex'}],
|
||||
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
|
||||
\ ['fatih/vim-go', { 'on_ft' : 'go', 'loadconf_before' : 1}],
|
||||
\ ]
|
||||
if g:spacevim_enable_javacomplete2_py
|
||||
call add(plugins , ['wsdjeg/vim-javacomplete2', { 'on_ft' : ['java','jsp'], 'loadconf' : 1}])
|
||||
else
|
||||
call add(plugins , ['artur-shaik/vim-javacomplete2', { 'on_ft' : ['java','jsp'], 'loadconf' : 1}])
|
||||
endif
|
||||
return plugins
|
||||
endfunction
|
@ -1,5 +1,5 @@
|
||||
function! SpaceVim#layers#unite#plugins() abort
|
||||
return [
|
||||
let plugins = [
|
||||
\ ['Shougo/unite.vim',{ 'merged' : 0 , 'loadconf' : 1}],
|
||||
\ ['Shougo/neoyank.vim'],
|
||||
\ ['soh335/unite-qflist'],
|
||||
@ -66,6 +66,11 @@ function! SpaceVim#layers#unite#plugins() abort
|
||||
\ 'on_cmd': 'Gista'
|
||||
\ }],
|
||||
\ ]
|
||||
if g:spacevim_enable_googlesuggest
|
||||
call add(plugins, ['mopp/googlesuggest-source.vim'])
|
||||
call add(plugins, ['mattn/googlesuggest-complete-vim'])
|
||||
endif
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#unite#config() abort
|
||||
|
6
autoload/SpaceVim/layers/vim.vim
Normal file
6
autoload/SpaceVim/layers/vim.vim
Normal file
@ -0,0 +1,6 @@
|
||||
function! SpaceVim#layers#vim#plugins() abort
|
||||
return [
|
||||
\ ['Shougo/vimshell.vim', { 'on_cmd':['VimShell']}],
|
||||
\ ['mattn/vim-terminal', { 'on_cmd':['Terminal']}],
|
||||
\ ]
|
||||
endfunction
|
@ -1,251 +1,4 @@
|
||||
scriptencoding utf-8
|
||||
let s:plugins = {}
|
||||
|
||||
let s:plugins.core = [
|
||||
\ ['Shougo/vimproc.vim', {'build' : 'make'}],
|
||||
\ ['hecal3/vim-leader-guide', {'loadconf': 1, 'loadconf_before' : 1, 'merged' : 0}],
|
||||
\ ]
|
||||
|
||||
let s:plugins.autocomplete = [
|
||||
\ ['honza/vim-snippets', {'on_i' : 1, 'loadconf_before' : 1}],
|
||||
\ ['Shougo/neco-syntax', { 'on_i' : 1}],
|
||||
\ ['ujihisa/neco-look', { 'on_i' : 1}],
|
||||
\ ['Shougo/neco-vim', { 'on_i' : 1, 'loadconf_before' : 1}],
|
||||
\ ['Shougo/context_filetype.vim', { 'on_i' : 1}],
|
||||
\ ['Shougo/neoinclude.vim', { 'on_i' : 1}],
|
||||
\ ['Shougo/neosnippet-snippets', { 'merged' : 0}],
|
||||
\ ['Shougo/neopairs.vim', { 'on_i' : 1}],
|
||||
\ ]
|
||||
if g:spacevim_autocomplete_method ==# 'ycm'
|
||||
call add(s:plugins.autocomplete, ['SirVer/ultisnips', {'loadconf_before' : 1}])
|
||||
call add(s:plugins.autocomplete, ['ervandew/supertab', {'loadconf_before' : 1}])
|
||||
call add(s:plugins.autocomplete, ['Valloric/YouCompleteMe', {'loadconf_before' : 1}])
|
||||
elseif g:spacevim_autocomplete_method ==# 'neocomplete' "{{{
|
||||
call add(s:plugins.autocomplete, ['Shougo/neocomplete', {
|
||||
\ 'on_i' : 1,
|
||||
\ 'loadconf' : 1,
|
||||
\ }])
|
||||
elseif g:spacevim_autocomplete_method ==# 'neocomplcache' "{{{
|
||||
call add(s:plugins.autocomplete, ['Shougo/neocomplcache.vim', {
|
||||
\ 'on_i' : 1,
|
||||
\ 'loadconf' : 1,
|
||||
\ }])
|
||||
elseif g:spacevim_autocomplete_method ==# 'deoplete'
|
||||
call add(s:plugins.autocomplete, ['Shougo/deoplete.nvim', {
|
||||
\ 'on_i' : 1,
|
||||
\ 'loadconf' : 1,
|
||||
\ }])
|
||||
endif
|
||||
|
||||
let s:plugins.chinese = [
|
||||
\ ['vimcn/vimcdoc'],
|
||||
\ ]
|
||||
|
||||
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'],
|
||||
\ ['vim-scripts/wombat256.vim'],
|
||||
\ ['vim-scripts/twilight256.vim'],
|
||||
\ ['junegunn/seoul256.vim'],
|
||||
\ ['vim-scripts/rdark-terminal2.vim'],
|
||||
\ ['vim-scripts/pyte'],
|
||||
\ ['joshdick/onedark.vim'],
|
||||
\ ['fmoralesc/molokayo'],
|
||||
\ ['jonathanfilip/vim-lucius'],
|
||||
\ ['wimstefan/Lightning'],
|
||||
\ ['w0ng/vim-hybrid'],
|
||||
\ ['scheakur/vim-scheakur'],
|
||||
\ ['keith/parsec.vim'],
|
||||
\ ['NLKNguyen/papercolor-theme'],
|
||||
\ ['romainl/flattened'],
|
||||
\ ['MaxSt/FlatColor'],
|
||||
\ ['chase/focuspoint-vim'],
|
||||
\ ['chriskempson/base16-vim'],
|
||||
\ ['gregsexton/Atom'],
|
||||
\ ['gilgigilgil/anderson.vim'],
|
||||
\ ['romainl/Apprentice'],
|
||||
\ ]
|
||||
|
||||
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.format = [
|
||||
\ ['sbdchd/neoformat', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}],
|
||||
\ ]
|
||||
|
||||
|
||||
let s:plugins.unite = [
|
||||
\ ['Shougo/unite.vim',{ 'merged' : 0 , 'loadconf' : 1}],
|
||||
\ ['Shougo/neoyank.vim'],
|
||||
\ ['soh335/unite-qflist'],
|
||||
\ ['ujihisa/unite-equery'],
|
||||
\ ['m2mdas/unite-file-vcs'],
|
||||
\ ['Shougo/neomru.vim'],
|
||||
\ ['kmnk/vim-unite-svn'],
|
||||
\ ['basyura/unite-rails'],
|
||||
\ ['nobeans/unite-grails'],
|
||||
\ ['choplin/unite-vim_hacks'],
|
||||
\ ['mattn/webapi-vim'],
|
||||
\ ['mattn/gist-vim', {'loadconf' : 1}],
|
||||
\ ['henices/unite-stock'],
|
||||
\ ['mattn/wwwrenderer-vim'],
|
||||
\ ['thinca/vim-openbuf'],
|
||||
\ ['ujihisa/unite-haskellimport'],
|
||||
\ ['oppara/vim-unite-cake'],
|
||||
\ ['thinca/vim-ref', {'loadconf' : 1}],
|
||||
\ ['heavenshell/unite-zf'],
|
||||
\ ['heavenshell/unite-sf2'],
|
||||
\ ['osyo-manga/unite-vimpatches'],
|
||||
\ ['Shougo/unite-outline'],
|
||||
\ ['hewes/unite-gtags' ,{'loadconf' : 1}],
|
||||
\ ['rafi/vim-unite-issue'],
|
||||
\ ['joker1007/unite-pull-request'],
|
||||
\ ['tsukkee/unite-tag'],
|
||||
\ ['ujihisa/unite-launch'],
|
||||
\ ['ujihisa/unite-gem'],
|
||||
\ ['osyo-manga/unite-filetype'],
|
||||
\ ['thinca/vim-unite-history'],
|
||||
\ ['Shougo/neobundle-vim-recipes'],
|
||||
\ ['Shougo/unite-help'],
|
||||
\ ['ujihisa/unite-locate'],
|
||||
\ ['kmnk/vim-unite-giti'],
|
||||
\ ['ujihisa/unite-font'],
|
||||
\ ['t9md/vim-unite-ack'],
|
||||
\ ['mileszs/ack.vim',{'on_cmd' : 'Ack'}],
|
||||
\ ['albfan/ag.vim',{'on_cmd' : 'Ag' , 'loadconf' : 1}],
|
||||
\ ['dyng/ctrlsf.vim',{'on_cmd' : 'CtrlSF', 'on_map' : '<Plug>CtrlSF', 'loadconf' : 1 , 'loadconf_before' : 1}],
|
||||
\ ['daisuzu/unite-adb'],
|
||||
\ ['osyo-manga/unite-airline_themes'],
|
||||
\ ['mattn/unite-vim_advent-calendar'],
|
||||
\ ['mattn/unite-remotefile'],
|
||||
\ ['sgur/unite-everything'],
|
||||
\ ['kannokanno/unite-dwm'],
|
||||
\ ['raw1z/unite-projects'],
|
||||
\ ['voi/unite-ctags'],
|
||||
\ ['Shougo/unite-session'],
|
||||
\ ['osyo-manga/unite-quickfix'],
|
||||
\ ['Shougo/vimfiler.vim',{'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}],
|
||||
\ ['ujihisa/unite-colorscheme'],
|
||||
\ ['mattn/unite-gist'],
|
||||
\ ['tacroe/unite-mark'],
|
||||
\ ['tacroe/unite-alias'],
|
||||
\ ['tex/vim-unite-id'],
|
||||
\ ['sgur/unite-qf'],
|
||||
\ ['lambdalisue/vim-gista-unite'],
|
||||
\ ['wsdjeg/unite-radio.vim', {'loadconf' : 1}],
|
||||
\ ['lambdalisue/unite-grep-vcs', {
|
||||
\ 'autoload': {
|
||||
\ 'unite_sources': ['grep/git', 'grep/hg'],
|
||||
\ }}],
|
||||
\ ['lambdalisue/vim-gista', {
|
||||
\ 'on_cmd': 'Gista'
|
||||
\ }],
|
||||
\ ]
|
||||
|
||||
if g:spacevim_enable_googlesuggest
|
||||
call add(s:plugins.unite, ['mopp/googlesuggest-source.vim'])
|
||||
call add(s:plugins.unite, ['mattn/googlesuggest-complete-vim'])
|
||||
endif
|
||||
"call add(s:plugins.unite, ['ujihisa/quicklearn'])
|
||||
let s:plugins.lang = [
|
||||
\ ['zchee/deoplete-jedi', { 'on_ft' : 'python'}],
|
||||
\ ['Shougo/neosnippet.vim', { 'on_i' : 1 , 'on_ft' : 'neosnippet', 'loadconf' : 1}],
|
||||
\ ['davidhalter/jedi-vim', { 'on_ft' : 'python'}],
|
||||
\ ['m2mdas/phpcomplete-extended', { 'on_ft' : 'php'}],
|
||||
\ ['groenewege/vim-less', { 'on_ft' : ['less']}],
|
||||
\ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}],
|
||||
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],
|
||||
\ ['ap/vim-css-color', { 'on_ft' : ['css','scss','sass','less','styl']}],
|
||||
\ ['othree/html5.vim', { 'on_ft' : ['html']}],
|
||||
\ ['wavded/vim-stylus', { 'on_ft' : ['styl']}],
|
||||
\ ['digitaltoad/vim-jade', { 'on_ft' : ['jade']}],
|
||||
\ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}],
|
||||
\ ['Valloric/MatchTagAlways', { 'on_ft' : ['html' , 'xhtml' , 'xml' , 'jinja']}],
|
||||
\ ['pangloss/vim-javascript', { 'on_ft' : ['javascript']}],
|
||||
\ ['maksimr/vim-jsbeautify', { 'on_ft' : ['javascript']}],
|
||||
\ ['leafgarland/typescript-vim', { 'on_ft' : ['typescript']}],
|
||||
\ ['kchmck/vim-coffee-script', { 'on_ft' : ['coffee']}],
|
||||
\ ['mmalecki/vim-node.js', { 'on_ft' : ['javascript']}],
|
||||
\ ['leshill/vim-json', { 'on_ft' : ['javascript','json']}],
|
||||
\ ['othree/javascript-libraries-syntax.vim', { 'on_ft' : ['javascript','coffee','ls','typescript']}],
|
||||
\ ['wsdjeg/vim-dict', { 'on_ft' : 'java'}],
|
||||
\ ['wsdjeg/java_getset.vim', { 'on_ft' : 'java'}],
|
||||
\ ['wsdjeg/JavaUnit.vim', { 'on_ft' : 'java'}],
|
||||
\ ['vim-jp/vim-java', { 'on_ft' : 'java'}],
|
||||
\ ['syngan/vim-vimlint', { 'on_ft' : 'vim'}],
|
||||
\ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}],
|
||||
\ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}],
|
||||
\ ['plasticboy/vim-markdown', { 'on_ft' : 'markdown'}],
|
||||
\ ['elixir-lang/vim-elixir', { 'on_ft' : 'elixir'}],
|
||||
\ ['racer-rust/vim-racer', { 'on_ft' : 'rust'}],
|
||||
\ ['PotatoesMaster/i3-vim-syntax', { 'on_ft' : 'i3'}],
|
||||
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
|
||||
\ ['lervag/vimtex', { 'on_ft' : 'tex'}],
|
||||
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
|
||||
\ ['fatih/vim-go', { 'on_ft' : 'go', 'loadconf_before' : 1}],
|
||||
\ ]
|
||||
if g:spacevim_enable_javacomplete2_py
|
||||
call add(s:plugins.lang , ['wsdjeg/vim-javacomplete2', { 'on_ft' : ['java','jsp'], 'loadconf' : 1}])
|
||||
else
|
||||
call add(s:plugins.lang , ['artur-shaik/vim-javacomplete2', { 'on_ft' : ['java','jsp'], 'loadconf' : 1}])
|
||||
endif
|
||||
let s:plugins.chat = [
|
||||
\ ['wsdjeg/vim-chat', { 'merged' : 0}],
|
||||
\ ]
|
||||
|
||||
let s:plugins.denite = [
|
||||
\ ['Shougo/denite.nvim',{ 'merged' : 0, 'loadconf' : 1}],
|
||||
\ ]
|
||||
|
||||
let s:plugins.ctrlp = [
|
||||
\ ['ctrlpvim/ctrlp.vim', {'loadconf' : 1}],
|
||||
\ ['voronkovich/ctrlp-nerdtree.vim', { 'on_cmd' : 'CtrlPNerdTree'}],
|
||||
\ ['h14i/vim-ctrlp-buftab', { 'on_cmd' : 'CtrlPBufTab'}],
|
||||
\ ['vim-scripts/ctrlp-cmdpalette', { 'on_cmd' : 'CtrlPCmdPalette'}],
|
||||
\ ['mattn/ctrlp-windowselector', { 'on_cmd' : 'CtrlPWindowSelector'}],
|
||||
\ ['the9ball/ctrlp-gtags', { 'on_cmd' : ['CtrlPGtagsX','CtrlPGtagsF','CtrlPGtagsR']}],
|
||||
\ ['thiderman/ctrlp-project', { 'on_cmd' : 'CtrlPProject'}],
|
||||
\ ['mattn/ctrlp-google', { 'on_cmd' : 'CtrlPGoogle'}],
|
||||
\ ['ompugao/ctrlp-history', { 'on_cmd' : ['CtrlPCmdHistory','CtrlPSearchHistory']}],
|
||||
\ ['pielgrzym/ctrlp-sessions', { 'on_cmd' : ['CtrlPSessions','MkS']}],
|
||||
\ ['tacahiroy/ctrlp-funky', { 'on_cmd' : 'CtrlPFunky'}],
|
||||
\ ['mattn/ctrlp-launcher', { 'on_cmd' : 'CtrlPLauncher'}],
|
||||
\ ['sgur/ctrlp-extensions.vim', { 'on_cmd' : ['CtrlPCmdline','CtrlPMenu','CtrlPYankring']}],
|
||||
\ ['FelikZ/ctrlp-py-matcher'],
|
||||
\ ['lambdalisue/vim-gista-ctrlp', { 'on_cmd' : 'CtrlPGista'}],
|
||||
\ ['elentok/ctrlp-objects.vim', { 'on_cmd' : [
|
||||
\'CtrlPModels',
|
||||
\'CtrlPViews',
|
||||
\'CtrlPControllers',
|
||||
\'CtrlPTemplates',
|
||||
\'CtrlPPresenters']}],
|
||||
\ ]
|
||||
if !has('nvim')
|
||||
call add(s:plugins.ctrlp, ['wsdjeg/ctrlp-unity3d-docs', { 'on_cmd' : 'CtrlPUnity3DDocs'}])
|
||||
endif
|
||||
let s:plugins.github = [
|
||||
\ ['junegunn/vim-github-dashboard', { 'on_cmd':['GHD','GHA','GHActivity','GHDashboard']}],
|
||||
\ ]
|
||||
let s:plugins.vim = [
|
||||
\ ['Shougo/vimshell.vim', { 'on_cmd':['VimShell']}],
|
||||
\ ['mattn/vim-terminal', { 'on_cmd':['Terminal']}],
|
||||
\ ]
|
||||
let s:plugins.git = [
|
||||
\ ['cohama/agit.vim', { 'on_cmd':['Agit','AgitFile']}],
|
||||
\ ['gregsexton/gitv', { 'on_cmd':['Gitv']}],
|
||||
\ ['junegunn/gv.vim', { 'on_cmd' : 'GV'}],
|
||||
\ ['lambdalisue/vim-gita', {'on_cmd': 'Gita'}],
|
||||
\ ]
|
||||
function! SpaceVim#plugins#load() abort
|
||||
if zvim#plug#enable_plug()
|
||||
call zvim#plug#begin(g:spacevim_plugin_bundle_dir)
|
||||
@ -410,7 +163,7 @@ function! SpaceVim#plugins#load() abort
|
||||
endfunction
|
||||
function! s:load_plugins() abort
|
||||
for group in g:spacevim_plugin_groups
|
||||
for plugin in get(s:plugins, group, [])
|
||||
for plugin in s:getLayerPlugins(group)
|
||||
if len(plugin) == 2
|
||||
call zvim#plug#add(plugin[0], plugin[1])
|
||||
if zvim#plug#tap(split(plugin[0], '/')[-1]) && get(plugin[1], 'loadconf', 0 )
|
||||
@ -434,11 +187,12 @@ function! s:load_plugins() abort
|
||||
endfunction
|
||||
|
||||
function! s:getLayerPlugins(layer) abort
|
||||
let p = []
|
||||
try
|
||||
return SpaceVim#layers#{a:layer}#plugins()
|
||||
let p = SpaceVim#layers#{a:layer}#plugins()
|
||||
catch /^Vim\%((\a\+)\)\=:E117/
|
||||
return []
|
||||
endtry
|
||||
return p
|
||||
endfunction
|
||||
|
||||
function! s:disable_plugins(plugin_list) abort
|
||||
|
Loading…
Reference in New Issue
Block a user