sublimelsp / LSP-jdtls

Convenience package for the Eclipse JDT language server

Home Page:https://packagecontrol.io/packages/LSP-jdtls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lombok support

rwols opened this issue · comments

Fwiw, nvim-lsp-installer downloads lombok.jar and enables Lombok support by default.

// 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