You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+62-3Lines changed: 62 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,20 @@ LSP java mode supports the following JDT Features:
18
18
* Limited Gradle support
19
19
20
20
## Installation
21
+
### Install [Eclipse JDT Language Server](https://projects.eclipse.org/projects/eclipse.jdt.ls)
22
+
Download either [latest](http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz) or [a specific version](http://download.eclipse.org/jdtls/snapshots/?d) of Eclipse JDT Language Server distribution to `~/.emacs.d/eclipse.jdt.ls/server/`
23
+
24
+
If you choose to have the server installed in a different directory, set `lsp-java-server-install-dir`.
25
+
26
+
On Linux/MacOS you could install/update [Eclipse JDT Language Server](https://projects.eclipse.org/projects/eclipse.jdt.ls) via running the following commands:
tar xf /tmp/jdt-latest.tar -C ~/.emacs.d/eclipse.jdt.ls/server/
33
+
```
34
+
21
35
### Install LSP Java
22
36
The recommended way to install LSP Java is via `package.el` - the built-in package
23
37
manager in Emacs.
@@ -38,11 +52,56 @@ Then add the following lines to your `.emacs` and open a file from the any of th
38
52
"/path/to/project2"
39
53
...))
40
54
```
55
+
#### Quick start
56
+
Minimal configuration with [company-lsp](https://github.com/tigersoldier/company-lsp and [lsp-ui](https://github.com/emacs-lsp/lsp-ui)). Make sure you have replaced the XXX placeholder with the list of the projects you want to import.
57
+
```elisp
58
+
(require 'cc-mode)
41
59
42
-
### Install [Eclipse JDT Language Server](https://projects.eclipse.org/projects/eclipse.jdt.ls)
43
-
Download either [latest](http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz) or [a specific version](http://download.eclipse.org/jdtls/snapshots/?d) of Eclipse JDT Language Server distribution to `~/.emacs.d/eclipse.jdt.ls/server/`
0 commit comments