blob: c2c22f21b8a4b6bb59e33d5a361fea981e651002 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
local status_ok, jdtls = pcall(require, "jdtls")
if not status_ok then
return
end
jdtls.start_or_attach {
--[[
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]
),
}
|