Sets up vim-lsp for Java.
** Eclipse JDT Language Server **
This vim plugin depends on Eclipse JDT Language Server.
Install Eclipse JDT Language Server
" Dependencies
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'lgranie/vim-lsp-java'
Edit your .vimrc file and configure like :
let g:vim_lsp_java = {
\ 'eclipse_jdtls' : {
\ 'repository': expand('~/opt/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository'),
\ 'config': 'config_linux',
\ 'workspace': expand('$WORKSPACE'),
\ },
\ }
-
Open a java source file in a Maven project (vim-lsp-java needs a pom.xml file).
-
Enjoy!
MIT