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 ~/.emacs.d/elpa/consult-20260805.1130/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)))