aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@toptal.com>2025-03-02 23:51:49 +0200
committerBozhidar Batsov <bozhidar@toptal.com>2025-03-02 23:51:49 +0200
commit64dee1f2de64c42fabacc5db678d7f66a6d3728d (patch)
tree929f8ede83919f5b0e5dbf82c8e3d3b3e01418d1 /doc
parent5a4075eefe98de8048f1450bb103d66fa11a2890 (diff)
[Docs] Document projectile-max-file-buffer-count
Diffstat (limited to 'doc')
-rw-r--r--doc/modules/ROOT/pages/configuration.adoc17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/modules/ROOT/pages/configuration.adoc b/doc/modules/ROOT/pages/configuration.adoc
index e9e58a6..44a6bd8 100644
--- a/doc/modules/ROOT/pages/configuration.adoc
+++ b/doc/modules/ROOT/pages/configuration.adoc
@@ -505,6 +505,23 @@ project-specific. This requires that the user set:
Both of these degrade properly when not inside a project.
+== Limit the number of project file buffers
+
+Projectile can be configured to keep a maximum number of file buffers of a project
+that are opened at one point. The custom variable `projectile-max-buffer-count`
+can be set to an integer that will be the buffer count cap. If this limit is
+reached, by opening a new file, Projectile will close the least recent buffer of
+the current project. If the variable is `nil`, the will be no cap on the buffer
+count.
+
+[source,elisp]
+----
+(setq projectile-max-file-buffer-count 10)
+----
+
+Note that special project buffers (e.g. compilation, `dired`, etc) are not
+affected by this setting.
+
== Regenerate tags
To be able to regenerate a project's tags via `projectile-tags-command`, you