groovy: add import for symbol key binding
This commit is contained in:
parent
d4017b1ca7
commit
fcd9d31bcb
|
@ -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 |
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue