Variable: projectile-require-project-root
projectile-require-project-root is a customizable variable defined in
projectile.el.
Value
prompt
Documentation
Require the presence of a project root to operate when true.
When set to prompt Projectile will ask you to select a project
directory if you're not in a project.
When nil Projectile will consider the current directory the project root.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defcustom projectile-require-project-root 'prompt
"Require the presence of a project root to operate when true.
When set to `prompt' Projectile will ask you to select a project
directory if you're not in a project.
When nil Projectile will consider the current directory the project root."
:group 'projectile
:type '(choice (const :tag "No" nil)
(const :tag "Yes" t)
(const :tag "Prompt for project" prompt)))