groovy: add import for symbol key binding
This commit is contained in:
parent
d4017b1ca7
commit
fcd9d31bcb
|
@ -7,6 +7,7 @@
|
||||||
- [[#features][Features:]]
|
- [[#features][Features:]]
|
||||||
- [[#install][Install]]
|
- [[#install][Install]]
|
||||||
- [[#key-bindings][Key bindings]]
|
- [[#key-bindings][Key bindings]]
|
||||||
|
- [[#imports][Imports]]
|
||||||
- [[#repl][REPL]]
|
- [[#repl][REPL]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
|
@ -23,6 +24,12 @@ add =groovy= to the existing =dotspacemacs-configuration-layers= list in this
|
||||||
file.
|
file.
|
||||||
|
|
||||||
* Key bindings
|
* Key bindings
|
||||||
|
** Imports
|
||||||
|
|
||||||
|
| Key Binding | Description |
|
||||||
|
|-------------+------------------------------------|
|
||||||
|
| ~SPC m r i~ | Add import for symbol around point |
|
||||||
|
|
||||||
** REPL
|
** REPL
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
|
|
|
@ -22,7 +22,12 @@
|
||||||
|
|
||||||
(defun groovy/init-groovy-imports ()
|
(defun groovy/init-groovy-imports ()
|
||||||
(use-package 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 ()
|
(defun groovy/init-groovy-mode ()
|
||||||
(use-package groovy-mode
|
(use-package groovy-mode
|
||||||
|
|
Loading…
Reference in a new issue