OpenCode plugin that tidies chat display output while preserving code blocks.
- Trims trailing whitespace from lines
- Normalizes multiple blank lines to max 2
- Adds spacing before list items for better readability
- Preserves fenced code blocks (including ```diff) untouched
bun add opencode-glowAdd to ~/.config/opencode/opencode.json:
{
"plugin": [
"opencode-glow"
]
}All fenced code blocks are passed through unchanged. The transform only applies to prose sections.
MIT