fix(lib): doom-project-find-file: remove +vertico/consult-fd-or-find
When +vertico/find-file-in was replaced in60e22fd
with +vertico/consult-fd-or-find, it changed a key behavior for doom-project-find-file for Vertico users: instead of displaying an initial list of all files under the target directory, it would display nothing until the user entered in N * `consult-async-min-input` characters, causing confusion (see linked comment). Since Vertico integration modifies project-find-file-in's interface appropriately, I leave it to that command instead. Ref: https://github.com/doomemacs/doomemacs/issues/7312#issuecomment-1933404444 Amend:60e22fd2eb
This commit is contained in:
parent
15339e4671
commit
1b0af3bfc7
1 changed files with 0 additions and 3 deletions
|
@ -149,9 +149,6 @@ 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 '+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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue