Skip to content

Commit f297929

Browse files
committed
docs: clarify dcp.jsonc config file location
1 parent db596b0 commit f297929

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ Restart OpenCode. The plugin will automatically start optimizing your sessions.
3131

3232
## Configuration
3333

34+
DCP uses its own configuration file, separate from OpenCode's `opencode.json`:
35+
36+
- **Global:** `~/.config/opencode/dcp.jsonc`
37+
- **Project:** `.opencode/dcp.jsonc`
38+
39+
The global config is automatically created on first run. Create a project config to override settings per-project.
40+
3441
### Available Options
3542

3643
- **`enabled`** (boolean, default: `true`) - Enable/disable the plugin
@@ -60,9 +67,7 @@ Example configuration:
6067

6168
### Configuration Hierarchy
6269

63-
1. **Built-in defaults** → 2. **Global config** (`~/.config/opencode/dcp.jsonc`) → 3. **Project config** (`.opencode/dcp.jsonc`)
64-
65-
The global config is automatically created on first run. Create project configs manually to override settings per-project:
70+
Settings are merged in order: **Built-in defaults****Global config****Project config**
6671

6772
After modifying configuration, restart OpenCode for changes to take effect.
6873

0 commit comments

Comments
 (0)