Skip to content

Commit 7eb0beb

Browse files
author
ivan.yonchovski
committed
Update readme
+ Spacemacs guide + Goto implementation is supported by latest jdt server.
1 parent db73983 commit 7eb0beb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![MELPA](https://melpa.org/packages/lsp-java-badge.svg)](https://melpa.org/#/lsp-java)
22
[![Build Status](https://travis-ci.com/emacs-lsp/lsp-java.svg?branch=master)](https://travis-ci.com/emacs-lsp/lsp-java)
3+
[![Spacemacs](https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg)](http://spacemacs.org)
34

45
Java support for lsp-mode using the [Eclipse JDT Language Server](https://projects.eclipse.org/projects/eclipse.jdt.ls).
56

@@ -16,8 +17,8 @@ LSP java mode supports the following JDT Features:
1617
* Code formatting
1718
* Maven pom.xml project support
1819
* Limited Gradle support
19-
* Visual debugger via [dap-mode](https://github.com/yyoncho/dap-mode/)
20-
* Test runner [dap-mode](https://github.com/yyoncho/dap-mode/)
20+
* Visual debugger - [dap-mode](https://github.com/yyoncho/dap-mode/)
21+
* Test runner - [dap-mode](https://github.com/yyoncho/dap-mode/)
2122

2223
## Installation
2324
### Install [Eclipse JDT Language Server](https://projects.eclipse.org/projects/eclipse.jdt.ls)
@@ -33,6 +34,9 @@ mkdir -p ~/.emacs.d/eclipse.jdt.ls/server/
3334
wget http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz -O /tmp/jdt-latest.tar
3435
tar xf /tmp/jdt-latest.tar -C ~/.emacs.d/eclipse.jdt.ls/server/
3536
```
37+
### Spacemacs
38+
[lsp-java](https://github.com/emacs-lsp/lsp-java) is included in spacemacs (for now only on the dev branch). If you are using the development version of
39+
spacemacs you can simply add `(java :variables java-backend 'lsp)` to `dotspacemacs-configuration-layers`.
3640

3741
### Install LSP Java
3842
The recommended way to install LSP Java is via `package.el` - the built-in package
@@ -112,6 +116,7 @@ Minimal configuration with [company-lsp](https://github.com/tigersoldier/company
112116
| lsp-rename | Rename symbol at point |
113117
| lsp-describe-thing-at-point | Display help for the thing at point. |
114118
| lsp-goto-type-definition | Go to type definition |
119+
| lsp-goto-implementation | Go to implementation |
115120
| lsp-workspace-restart | Restart project |
116121
| lsp-format-buffer | Format current buffer |
117122
| lsp-symbol-highlight | Highlight all relevant references to the symbol under point. |

0 commit comments

Comments
 (0)