Compare commits
2 Commits
696da8ed63
...
2d38afd418
Author | SHA1 | Date | |
---|---|---|---|
|
2d38afd418 | ||
|
9b5f71fcc1 |
@ -81,6 +81,19 @@ targets."
|
|||||||
("k" password-store-remove)
|
("k" password-store-remove)
|
||||||
("U" password-store-url))
|
("U" password-store-url))
|
||||||
(add-to-list 'embark-keymap-alist '(password-store . embark-password-store-actions))
|
(add-to-list 'embark-keymap-alist '(password-store . embark-password-store-actions))
|
||||||
|
;; Add identifiers in LSP-mode as their own target type
|
||||||
|
(with-eval-after-load 'lsp-mode
|
||||||
|
(defun embark-target-lsp-identifier-at-point ()
|
||||||
|
(when lsp-mode
|
||||||
|
(when-let ((sym (embark-target-identifier-at-point)))
|
||||||
|
(cons 'lsp-identifier (cdr sym)))))
|
||||||
|
(add-to-list 'embark-target-finders 'embark-target-lsp-identifier-at-point)
|
||||||
|
(embark-define-keymap embark-lsp-identifier-actions
|
||||||
|
"Keymap for actions on LSP identifiers."
|
||||||
|
:parent embark-identifier-map
|
||||||
|
("a" lsp-execute-code-action))
|
||||||
|
(add-to-list 'embark-keymap-alist '(lsp-identifier . embark-lsp-identifier-actions))
|
||||||
|
(add-to-list 'embark-target-injection-hooks '(lsp-execute-code-action embark--ignore-target)))
|
||||||
:general
|
:general
|
||||||
("C-." #'embark-act)
|
("C-." #'embark-act)
|
||||||
("M-." #'embark-dwim)
|
("M-." #'embark-dwim)
|
||||||
|
@ -3,4 +3,6 @@
|
|||||||
(use-package lsp-java
|
(use-package lsp-java
|
||||||
:hook (java-mode . lsp-deferred))
|
:hook (java-mode . lsp-deferred))
|
||||||
|
|
||||||
|
(use-package protobuf-mode)
|
||||||
|
|
||||||
(provide 'init-java)
|
(provide 'init-java)
|
||||||
|
Loading…
Reference in New Issue
Block a user