Fix embark action xref-find-references

This commit is contained in:
Jeremy Dormitzer 2022-04-13 14:22:04 -04:00
parent 908222a1b9
commit 3869c8a615

View File

@ -96,6 +96,7 @@ targets."
(add-to-list 'embark-keymap-alist '(lsp-identifier . embark-lsp-identifier-actions)) (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)) (add-to-list 'embark-target-injection-hooks '(lsp-execute-code-action embark--ignore-target))
(add-to-list 'embark-target-injection-hooks '(lsp-describe-thing-at-point embark--ignore-target))) (add-to-list 'embark-target-injection-hooks '(lsp-describe-thing-at-point embark--ignore-target)))
(add-to-list 'embark-target-injection-hooks '(xref-find-references embark--ignore-target))
:general :general
((emacs normal motion insert visual) "C-." #'embark-act) ((emacs normal motion insert visual) "C-." #'embark-act)
((emacs normal motion insert visual) "M-." #'embark-dwim) ((emacs normal motion insert visual) "M-." #'embark-dwim)