Fix SPC f F w/ vertico + consult
Not a perfect analogue to counsel-file-jump, but it's a start (and better than the previous no-op).
This commit is contained in:
parent
54a556c2fa
commit
dd9657d90d
2 changed files with 4 additions and 1 deletions
|
@ -128,6 +128,9 @@ If DIR is not a project, it will be indexed (but not cached)."
|
|||
(if (doom-module-p :completion 'ivy)
|
||||
#'counsel-projectile-find-file
|
||||
#'projectile-find-file)))
|
||||
((and (bound-and-true-p vertico-mode)
|
||||
(fboundp 'consult-find))
|
||||
(consult-find default-directory))
|
||||
((and (bound-and-true-p ivy-mode)
|
||||
(fboundp 'counsel-file-jump))
|
||||
(call-interactively #'counsel-file-jump))
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
(interactive)
|
||||
(if (featurep! :completion ivy)
|
||||
(call-interactively #'counsel-file-jump)
|
||||
(cmd! (doom-project-find-file default-directory))))
|
||||
(doom-project-find-file default-directory)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +default/discover-projects (arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue