From ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 20 Mar 2022 23:19:59 +0800 Subject: Use projectile as root function (emacs) --- .emacs.d/lisp/init-minibuffer.el | 3 +++ 1 file changed, 3 insertions(+) (limited to '.emacs.d/lisp/init-minibuffer.el') 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 "fb") 'consult-buffer -- cgit v1.2.3