diff options
-rw-r--r-- | .emacs.d/lisp/init-minibuffer.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el index 6fa5061..777ea7e 100644 --- a/.emacs.d/lisp/init-minibuffer.el +++ b/.emacs.d/lisp/init-minibuffer.el @@ -19,6 +19,9 @@ (lambda () (interactive) (vertico-previous (/ vertico-count 2))))) (when (gx/maybe-require-package 'consult) + (when (gx/maybe-require-package 'projectile) + (autoload 'projectile-project-root "projectile") + (setq consult-project-function (lambda (_) (projectile-project-root)))) (with-eval-after-load 'evil (evil-define-key 'normal 'global (kbd "<leader>fb") 'consult-buffer |