Function: consult--default-project-function
consult--default-project-function is a natively compiled function
defined in consult.el.
Signature
(consult--default-project-function MAY-PROMPT)
Documentation
Return project root directory.
When no project is found and MAY-PROMPT is non-nil ask the user.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--default-project-function (may-prompt)
"Return project root directory.
When no project is found and MAY-PROMPT is non-nil ask the user."
(declare-function project-root "project")
(when-let* ((proj (project-current may-prompt)))
(project-root proj)))