Skip to content

Commit 86f03b7

Browse files
docs: add OpenCode integration
1 parent 968faa0 commit 86f03b7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,19 @@ Supported commands: `git`, `go`, `cargo`, `npm`, `npx`, `yarn`, `pnpm`, `docker`
148148
snip init --uninstall # remove the hook
149149
```
150150

151+
### OpenCode
152+
153+
Install the [opencode-snip](https://github.com/VincentHardouin/opencode-snip) plugin by adding it to your OpenCode config (`~/.config/opencode/opencode.json`):
154+
155+
```json
156+
{
157+
"$schema": "https://opencode.ai/config.json",
158+
"plugin": ["opencode-snip@latest"]
159+
}
160+
```
161+
162+
The plugin uses the `tool.execute.before` hook to automatically prefix supported commands with `snip`.
163+
151164
### Cursor
152165

153166
Cursor supports hooks since v1.7 via `~/.cursor/hooks.json`:

0 commit comments

Comments
 (0)