Variable: projectile--nextjs-file-kinds

projectile--nextjs-file-kinds is a variable defined in projectile.el.

Value

((:page :prefix "page." :key-fn projectile--parent-directory-key)
 (:layout :prefix "layout." :key-fn projectile--parent-directory-key)
 (:loading :prefix "loading." :key-fn projectile--parent-directory-key)
 (:error :prefix "error." :key-fn projectile--parent-directory-key)
 (:route :prefix "route." :key-fn projectile--parent-directory-key))

Documentation

Reference :file-kinds\= table for Next.js applications.

The app router gives a route's files fixed names in a shared directory - page, layout, loading, error, route - so the directory is the key. Each kind matches on the name plus its dot rather than a whole file name, so it covers whichever of .js, .jsx, .ts or .tsx the project uses without also matching something like pageant.tsx\=.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defvar projectile--nextjs-file-kinds
  '((:page    . (:prefix "page." :key-fn projectile--parent-directory-key))
    (:layout  . (:prefix "layout." :key-fn projectile--parent-directory-key))
    (:loading . (:prefix "loading." :key-fn projectile--parent-directory-key))
    (:error   . (:prefix "error." :key-fn projectile--parent-directory-key))
    (:route   . (:prefix "route." :key-fn projectile--parent-directory-key)))
  "Reference `:file-kinds\\=' table for Next.js applications.
The app router gives a route\\='s files fixed names in a shared directory -
page, layout, loading, error, route - so the directory is the key.  Each
kind matches on the name plus its dot rather than a whole file name, so
it covers whichever of .js, .jsx, .ts or .tsx the project uses without
also matching something like `pageant.tsx\\='.")