Comments (6)
@ChristianChiarulli @jemag @GustavoPrietoP @alanjjenkins I've merged support for Java + Lombok (with great help from @alanjjenkins). Could you try and tell me if this works for you?
hey, i just tested it out and it seems like it works :)
from nvim-lspinstall.
I'll look into it. What is the preferred language server for Java these days?
from nvim-lspinstall.
@kabouzeid This should be all you need to get started. Ping me if you want to discuss anything there, I've setup the langserver with Lombok a few times already.
In the wiki there is a in depth config.
from nvim-lspinstall.
I think Christian forgot to paste a link.
Either way, https://github.com/mfussenegger/nvim-jdtls has a good guide on setting up the java language-server (you can check both the README and wiki). For lombok, the launch script can be modified like so by adding -javaagent -Xbootclasspath/a for your lombok jar path, e.g.:
#!/bin/bash
JAR="$HOME/dev/eclipse/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/plugins/org.eclipse.equinox.launcher_*.jar"
export GRADLE_HOME=/usr/bin/gradle
java \
-Declipse.application=org.eclipse.jdt.ls.core.id1 \
-Dosgi.bundles.defaultStartLevel=4 \
-Declipse.product=org.eclipse.jdt.ls.core.product \
-Dlog.protocol=true \
-Dlog.level=ALL \
-Xms1g \
-Xmx2G \
-javaagent:/home/jemag/.config/nvim/dependencies/lombok.jar \
-Xbootclasspath/a:/home/jemag/.config/nvim/dependencies/lombok.jar \
-jar $(echo "$JAR") \
-configuration "$HOME/dev/eclipse/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/config_linux" \
-data "$1" \
--add-modules=ALL-SYSTEM \
--add-opens java.base/java.util=ALL-UNNAMED \
--add-opens java.base/java.lang=ALL-UNNAMED
from nvim-lspinstall.
I don't think any of this will work in a way that fits with this plugin (install servers with one command).
I can't assume the location of gradle
, jdk
and workspace
. Since you have to manually configure this server anyways, I don't think :LspInstall java
would buy you much.
from nvim-lspinstall.
@ChristianChiarulli @jemag @GustavoPrietoP @alanjjenkins I've merged support for Java + Lombok (with great help from @alanjjenkins). Could you try and tell me if this works for you?
from nvim-lspinstall.
Related Issues (20)
- No html/CSS diagnostics HOT 1
- code_action does not work for Java without nvim-jdtls HOT 3
- haskell does not work (`cmd_cwd` changes and hls can't find hie.yaml)
- JSON language server will not run under Node 12.x because... HOT 1
- Add prisma lsp HOT 2
- Support for yarn HOT 1
- Supporting yarn HOT 12
- install lua failed on arch linux HOT 1
- Can't install Python LSP using LspInstall, in WSL2 HOT 2
- LspInstall - cannot find npm command HOT 2
- Custom install path HOT 2
- Error message when saving C header files. HOT 3
- Add LspInstall for lemminx (XML,XSD,SVG) HOT 3
- Install a list of language servers at startup HOT 3
- Options for java
- "cmd not defined" after installing Java HOT 1
- nvim-lspinstall config for html makes svelte files show duplicate entries for completion
- Angularls doesn't works at all
- MacOS - CSS - Client quit with exit code 1 and signal 0
- Does ESLint Language Server will be added to LSPInstall?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-lspinstall.