1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00

Merge pull request #112 from SpaceVim/lang/java

Add java support
This commit is contained in:
Wang Shidong 2017-01-15 21:33:07 +08:00 committed by GitHub
commit c6132d4134
3 changed files with 20 additions and 9 deletions

View File

@ -235,6 +235,8 @@ endfunction
" maker : syntax checker " maker : syntax checker
" "
" unite : unite centric work-flow " unite : unite centric work-flow
"
" lang#java : java autocompletion and syntax checker
"" ""

View File

@ -18,10 +18,6 @@ function! SpaceVim#layers#lang#plugins() abort
\ ['mmalecki/vim-node.js', { 'on_ft' : ['javascript']}], \ ['mmalecki/vim-node.js', { 'on_ft' : ['javascript']}],
\ ['leshill/vim-json', { 'on_ft' : ['javascript','json']}], \ ['leshill/vim-json', { 'on_ft' : ['javascript','json']}],
\ ['othree/javascript-libraries-syntax.vim', { 'on_ft' : ['javascript','coffee','ls','typescript']}], \ ['othree/javascript-libraries-syntax.vim', { 'on_ft' : ['javascript','coffee','ls','typescript']}],
\ ['wsdjeg/vim-dict', { 'on_ft' : 'java'}],
\ ['wsdjeg/java_getset.vim', { 'on_ft' : 'java', 'loadconf' : 1}],
\ ['wsdjeg/JavaUnit.vim', { 'on_ft' : 'java'}],
\ ['vim-jp/vim-java', { 'on_ft' : 'java'}],
\ ['syngan/vim-vimlint', { 'on_ft' : 'vim'}], \ ['syngan/vim-vimlint', { 'on_ft' : 'vim'}],
\ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}], \ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}],
\ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}], \ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}],
@ -35,11 +31,6 @@ function! SpaceVim#layers#lang#plugins() abort
\ ['fatih/vim-go', { 'on_ft' : 'go', 'loadconf_before' : 1}], \ ['fatih/vim-go', { 'on_ft' : 'go', 'loadconf_before' : 1}],
\ ['rust-lang/rust.vim', {'merged' : 1}], \ ['rust-lang/rust.vim', {'merged' : 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
" python " python
if has('nvim') if has('nvim')
call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}]) call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}])

View File

@ -0,0 +1,18 @@
function! SpaceVim#layers#lang#java#plugins() abort
let plugins = [
\ ['wsdjeg/vim-dict', { 'on_ft' : 'java'}],
\ ['wsdjeg/java_getset.vim', { 'on_ft' : 'java', 'loadconf' : 1}],
\ ['wsdjeg/JavaUnit.vim', { 'on_ft' : 'java'}],
\ ['vim-jp/vim-java', { 'on_ft' : 'java'}],
\ ]
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
function! SpaceVim#layers#lang#java#config() abort
endfunction