From 1e3b85db555e7f158737bd3e4d93b33e78fd1785 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 30 Apr 2023 22:19:05 -0400 Subject: add more instructions on how to install the jdtls lsp client --- after/ftplugin/java.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'after') diff --git a/after/ftplugin/java.lua b/after/ftplugin/java.lua index 575ab1c..c2c22f2 100644 --- a/after/ftplugin/java.lua +++ b/after/ftplugin/java.lua @@ -4,7 +4,18 @@ if not status_ok then end jdtls.start_or_attach { - cmd = {'/home/squibid/Downloads/jdt-lang-serv/bin/jdtls'}, + --[[ + There are 3 ways to get the jdtls server (ranked from easiest to hardest): + 1. Install it from your distros repo + 2. Download a milestone from: https://download.eclipse.org/jdtls/milestones + then extract it. + 3. Compile it from source: https://github.com/eclipse/eclipse.jdt.ls + good luck :) + + For all 3 of these you need to put the path to the jdtls binary in the + "cmd" section below + ]] + cmd = {''}, root_dir = vim.fs.dirname( vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1] ), -- cgit v1.2.1