fix(vertico): add counsel-file-jump analogue

Fix 'SPC f F' / 'C-c f F' for vertico users
This commit is contained in:
Henrik Lissner 2021-07-28 12:53:02 -04:00
parent 551e5adf81
commit 33b646826b
4 changed files with 28 additions and 5 deletions

View file

@ -129,8 +129,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 'consult-find))
(consult-find default-directory))
(fboundp '+vertico/find-file-in))
(+vertico/find-file-in default-directory))
((and (bound-and-true-p ivy-mode)
(fboundp 'counsel-file-jump))
(call-interactively #'counsel-file-jump))