groovy: add import for symbol key binding

This commit is contained in:
syl20bnr 2018-03-10 10:40:57 -05:00
parent d4017b1ca7
commit fcd9d31bcb
2 changed files with 13 additions and 1 deletions

View File

@ -7,6 +7,7 @@
- [[#features][Features:]]
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
- [[#imports][Imports]]
- [[#repl][REPL]]
* Description
@ -23,6 +24,12 @@ add =groovy= to the existing =dotspacemacs-configuration-layers= list in this
file.
* Key bindings
** Imports
| Key Binding | Description |
|-------------+------------------------------------|
| ~SPC m r i~ | Add import for symbol around point |
** REPL
| Key Binding | Description |

View File

@ -22,7 +22,12 @@
(defun groovy/init-groovy-imports ()
(use-package groovy-imports
:defer t))
:defer t
:init
(progn
(add-hook 'groovy-mode-hook 'groovy-imports-scan-file)
(spacemacs/set-leader-keys-for-major-mode 'groovy-mode
"ri" 'groovy-imports-add-import-dwim))))
(defun groovy/init-groovy-mode ()
(use-package groovy-mode