Compare commits
No commits in common. "2d38afd4184c44812ed59024b1ba13390c45bb85" and "696da8ed63507d0c11c0ff1eb4bdc3ab595be2ea" have entirely different histories.
2d38afd418
...
696da8ed63
@ -81,19 +81,6 @@ 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,6 +3,4 @@
|
|||||||
(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