From d6db37a85df6c7894e37dd1246d7faab114c2ac8 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 1 Apr 2022 22:45:56 -0400 Subject: [PATCH] Add embark binding for lsp-describe-thing-at-point --- emacs/.emacs.d/config/init-completion.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/config/init-completion.el b/emacs/.emacs.d/config/init-completion.el index 3e7d9dc..b0a4454 100644 --- a/emacs/.emacs.d/config/init-completion.el +++ b/emacs/.emacs.d/config/init-completion.el @@ -91,9 +91,11 @@ targets." (embark-define-keymap embark-lsp-identifier-actions "Keymap for actions on LSP identifiers." :parent embark-identifier-map - ("a" lsp-execute-code-action)) + ("a" lsp-execute-code-action) + ("s" lsp-describe-thing-at-point)) (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))) :general ("C-." #'embark-act) ("M-." #'embark-dwim)