Lombok support
rwols opened this issue · comments
Raoul Wols commented
Document how to make it work with Lombok https://github.com/redhat-developer/vscode-java/wiki/Lombok-support
Jack Cherng commented
Fwiw, nvim-lsp-installer
downloads lombok.jar
and enables Lombok support by default.
- williamboman/nvim-lsp-installer@c062310
- That client also auto download
lombok.jar
and saves it to server directory (i.e.,root_dir
in its codes) https://github.com/williamboman/nvim-lsp-installer/blob/c06231094809f400d8e2390936969a82a235ba87/lua/nvim-lsp-installer/servers/jdtls/init.lua#L56
Ajinkya commented
// Settings in here override those in "LSP-jdtls/LSP-jdtls.sublime-settings"
{
// The startup command.
"command": [
"${java_executable}",
"--add-modules=ALL-SYSTEM",
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang=ALL-UNNAMED",
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
"-Dosgi.bundles.defaultStartLevel=4",
"-Declipse.product=org.eclipse.jdt.ls.core.product",
"-Dfile.encoding=UTF-8",
"-DwatchParentProcess=${watch_parent_process}",
"-noverify",
"-XX:+UseParallelGC",
"-XX:GCTimeRatio=4",
"-XX:AdaptiveSizePolicyWeight=90",
"-Dsun.zip.disableMemoryMapping=true",
"-Xmx1G",
"-Xms100m",
"-javaagent:/path/to/lombok/lombok.jar",
"-jar",
"${serverdir}/plugins/org.eclipse.equinox.launcher_${launcher_version}.jar",
"-configuration",
"${serverdir}/config_${jdtls_platform}",
"-data",
"${datadir}"
],
}
Just add this line "-javaagent:/path/to/lombok/lombok.jar",
. It should work then