fix(lib): doom-project-find-file: allow arbitrary roots

Allow doom-project-find-file to search file hierarchies from arbitrary
starting points (otherwise, project.el will resolve to the nearest
project root).
This commit is contained in:
Henrik Lissner
2025-06-09 18:02:12 +02:00
parent 7280e44dc5
commit 18bb2da849

View File

@ -163,7 +163,7 @@ If DIR is not a project, it will be indexed (but not cached)."
((when-let* ((project-current-directory-override dir)
(pr (project-current t dir)))
(condition-case _
(project-find-file-in nil nil pr)
(project-find-file-in nil (list dir) pr t)
;; FIX: project.el throws errors if DIR is an empty directory,
;; which is poor UX.
(wrong-type-argument