-
Notifications
You must be signed in to change notification settings - Fork 273
Java
Junfeng Li edited this page May 23, 2018
·
9 revisions
- Install Eclipse JDT Language Server
- Create executable
jdtlsin path, with content:
#!/usr/bin/env sh
java \
-Declipse.application=org.eclipse.jdt.ls.core.id1 \
-Dosgi.bundles.defaultStartLevel=4 \
-Declipse.product=org.eclipse.jdt.ls.core.product \
-noverify \
-Xms1G \
-jar {{ your java lsp installation }}/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar \
-configuration {{ your java lsp installation }}/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/config_linux/ \
"$@"- Add to your vim config:
let g:LanguageClient_serverCommands = {
\ 'java': ['jdtls', '-Dlog.level=ALL'],
\ }All folders should be absolute.
It is not possible right now to browse dependencies. Here is a workaround:
- Unpack dependencies sources to project
mvn dependency:unpack-dependencies -Dclassifier=sources -Dmdep.failOnMissingClassifierArtifact=false- Generate ctags file
ctags-exuberant -R --language-force=java -f .tags ./test/nifi-test-processors/target/dependency- Point vim to ctags file
set tags={{ wherever your .tags file is }}- Navigate to deps with
<C-]>