@hoangp8/opencode-plugin-editor-diff
v0.1.0
Published
OpenCode plugin that shows visual diffs in your editor after file edits
Readme
opencode-plugin-editor-diff
A temporary workaround using .tmp backups to show visual diffs in your editor after file edits.
Setup
~/.config/opencode/opencode.jsonc:
{
// Pin version for faster startup
"plugin": ["@hoangp8/[email protected]"]
}Configuration
~/.config/opencode/diff.jsonc:
{
"editor": "code"
}- editor:
code|cursor|antigravity|windsurf(default:code)
Note
- Editor diffs only show when edits are done (approved or auto-allowed), otherwise diffs appear in TUI only.
- I suggest enabling auto-edit, then you see the change, type
/undoto revert, or feedback for further edits.
