refactor(vertico): use consult-fd

Close: #7458
Co-authored-by: LemonBreezes <look@strawberrytea.xyz>
This commit is contained in:
Itai Y. Efrat 2023-09-25 19:29:32 +03:00
parent 9bfc0ee029
commit 60e22fd2eb
4 changed files with 12 additions and 54 deletions

View file

@ -150,8 +150,8 @@ If DIR is not a project, it will be indexed (but not cached)."
#'counsel-projectile-find-file
#'projectile-find-file)))
((and (bound-and-true-p vertico-mode)
(fboundp '+vertico/find-file-in))
(+vertico/find-file-in default-directory))
(fboundp '+vertico/consult-fd-or-find))
(+vertico/consult-fd-or-find default-directory))
((and (bound-and-true-p ivy-mode)
(fboundp 'counsel-file-jump))
(call-interactively #'counsel-file-jump))