From 84b8fdfd51ed79b69583bf93156610530141c5ef Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 3 Apr 2024 18:46:24 -0600 Subject: [PATCH] Add consult-projectile and bind consult-narrow --- emacs/.emacs.d/config/init-completion.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs/.emacs.d/config/init-completion.el b/emacs/.emacs.d/config/init-completion.el index c4e370b..8d5f96f 100644 --- a/emacs/.emacs.d/config/init-completion.el +++ b/emacs/.emacs.d/config/init-completion.el @@ -153,6 +153,7 @@ targets." :custom (consult-project-function #'projectile-project-root) (consult-find-args "find . -not ( -wholename */.git/* -prune )") + (consult-narrow-key "<") :general ([remap switch-to-buffer] #'consult-buffer) ([remap imenu] #'consult-imenu) @@ -160,6 +161,13 @@ targets." ([remap projectile-grep] #'consult-grep) ("C-c p" #'consult-yank-from-kill-ring)) +(use-package consult-projectile + :after (consult projectile) + :commands (consult-projectile) + :general + (projectile-command-map "RET" #'consult-projectile)) + + (use-package consult-eglot :after (consult eglot) :general