Looking at projectile it seems to offer four customizations for ignoring
files/directories globally. I am listing each of them below, with their
documentation
projectile-globally-ignored-files
A list of files globally ignored by projectile.
projectile-globally-ignored-directories
A list of directories globally ignored by projectile.
projectile-globally-ignored-file-suffixes
A list of file suffixes globally ignored by projectile.
projectile-globally-ignored-modes
A list of regular expressions for major modes ignored by projectile.
If a buffer is using a given major mode, projectile will ignore
it for functions working with buffers.
Please note that these are global options so for example a directory in
projectile-globally-ignored-directories
will be ignored irrespective of the
project you are working with. To ignore a file/directory for a particular
project you can add a .projectile
file to the project's root and add
the paths to ignore prefixed with -
to it like following
-/CMake
See the documentation of projectile-parse-dirconfig-file
(or projectile's docs) for more info
Parse project ignore file and return directories to ignore and keep.
The return value will be a cons, the car being the list of
directories to keep, and the cdr being the list of files or
directories to ignore.
Strings starting with + will be added to the list of
directories
to keep, and strings starting with - will be added to the list of
directories to ignore. For backward compatibility, without a
prefix the string will be assumed to be an ignore string.