Variable: consult-project-function
consult-project-function is a customizable variable defined in
consult.el.
Value
consult--default-project-function
Documentation
Function which returns project root directory.
The function takes one boolean argument MAY-PROMPT. If
MAY-PROMPT is non-nil, the function may ask the prompt the user
for a project directory. The root directory is used by
consult-buffer and consult-grep.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defcustom consult-project-function
#'consult--default-project-function
"Function which returns project root directory.
The function takes one boolean argument MAY-PROMPT. If
MAY-PROMPT is non-nil, the function may ask the prompt the user
for a project directory. The root directory is used by
`consult-buffer' and `consult-grep'."
:type `(choice
(const :tag "Default project function" ,#'consult--default-project-function)
(function :tag "Custom function")
(const :tag "No project integration" nil)))