diff options
author | Chris <[email protected]> | 2021-03-13 00:39:49 -0500 |
---|---|---|
committer | Chris <[email protected]> | 2021-03-13 00:39:49 -0500 |
commit | d16093b4225477ef5d043b2722aa59318193efbf (patch) | |
tree | 894a4c53ec954d9abd31fad3ba44edbf230078e3 /utils/bin | |
parent | b68ac7c7b12559533801a4c4634d223eb3ece489 (diff) |
beiginning java support
Diffstat (limited to 'utils/bin')
-rwxr-xr-x | utils/bin/java-linux-ls | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/utils/bin/java-linux-ls b/utils/bin/java-linux-ls new file mode 100755 index 00000000..a3a7d6ba --- /dev/null +++ b/utils/bin/java-linux-ls @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +# NOTE: +# This doesn't work as is on Windows. You'll need to create an equivalent `.bat` file instead +# +# NOTE: +# If you're not using Linux you'll need to adjust the `-configuration` option +# to point to the `config_mac' or `config_win` folders depending on your system. + +JAR="$HOME/.config/nvim/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/plugins/org.eclipse.equinox.launcher_*.jar" +GRADLE_HOME=$HOME/gradle $HOME/.sdkman/candidates/java/current/bin/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 \ + -jar $(echo "$JAR") \ + -configuration "$HOME/.config/nvim/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/config_linux" \ + -data "${1:-$HOME/workspace}" \ + --add-modules=ALL-SYSTEM \ + --add-opens java.base/java.util=ALL-UNNAMED \ + --add-opens java.base/java.lang=ALL-UNNAMED |