1
0
Fork 0

Add some more key bindings to the java refactor hydra

This commit is contained in:
Tom Willemse 2019-10-16 23:27:07 -07:00
parent 1ac1bedfc6
commit 0baa1485c2

View file

@ -42,9 +42,13 @@
(defhydra java-refactor-hydra (:color blue) (defhydra java-refactor-hydra (:color blue)
("r" lsp-rename "Rename object") ("r" lsp-rename "Rename object")
("m" lsp-java-extract-method "Extract method") ("m" lsp-java-extract-method "Extract method")
("M" lsp-java-organize-imports)
("i" lsp-java-add-import "Add import") ("i" lsp-java-add-import "Add import")
("t" lsp-java-add-throws "Add throws") ("t" lsp-java-add-throws "Add throws")
("m" lsp-java-add-unimplemented-methods "Add unimplemented methods")) ("u" lsp-java-add-unimplemented-methods "Add unimplemented methods")
("c" lsp-java-extract-to-constant "Extract to constant")
("p" lsp-java-create-parameter "Create parameter")
("l" lsp-java-create-local "Create local"))
(setq lsp-java-server-install-dir (setq lsp-java-server-install-dir
(oni-data-dir-locate "lsp-java/server/")) (oni-data-dir-locate "lsp-java/server/"))