Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Improve inline_completions.disabled_globs in default.json (#24051)

Peter Trippde3702bedced
diff --git a/assets/settings/default.json b/assets/settings/default.json
index a4a30300c6f..0db8d87b5fa 100644
--- a/assets/settings/default.json
+++ b/assets/settings/default.json
@@ -776,7 +776,7 @@
"load_direnv": "direct",
"inline_completions": {
// A list of globs representing files that inline completions should be disabled for.
- "disabled_globs": [".env"]
+ "disabled_globs": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"]
},
// Settings specific to journaling
"journal": {
diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md
index e611f718c0e..82b0b36a0d2 100644
--- a/docs/src/configuring-zed.md
+++ b/docs/src/configuring-zed.md
@@ -382,11 +382,16 @@ There are two options to choose from:
- Default:
```json
-"inline_completions": {
- "disabled_globs": [
- ".env"
- ]
-}
+ "inline_completions": {
+ "disabled_globs": [
+ "**/.env*",
+ "**/*.pem",
+ "**/*.key",
+ "**/*.cert",
+ "**/*.crt",
+ "**/secrets.yml"
+ ]
+ }
```
**Options**