summaryrefslogtreecommitdiffhomepage
path: root/opencode.json
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-26 22:12:23 -0400
committerJay V <[email protected]>2025-06-27 19:10:41 -0400
commitb61a841aa8f6f92803df8873ad63efd10397fc0f (patch)
treecbc7f38f4a9f8251b0fdbc5445d3384b9d9f4034 /opencode.json
parentebcf11e574d0ebb056248e84f495789e1b211437 (diff)
downloadopencode-b61a841aa8f6f92803df8873ad63efd10397fc0f.tar.gz
opencode-b61a841aa8f6f92803df8873ad63efd10397fc0f.zip
add auto formatting and experimental hooks feature
Diffstat (limited to 'opencode.json')
-rw-r--r--opencode.json14
1 files changed, 13 insertions, 1 deletions
diff --git a/opencode.json b/opencode.json
index 720ece5c1..59748f927 100644
--- a/opencode.json
+++ b/opencode.json
@@ -1,3 +1,15 @@
{
- "$schema": "https://opencode.ai/config.json"
+ "$schema": "https://opencode.ai/config.json",
+ "experimental": {
+ "hook": {
+ "file_edited": {
+ ".json": []
+ },
+ "session_completed": [
+ {
+ "command": ["touch", "./node_modules/foo"]
+ }
+ ]
+ }
+ }
}