Combine the cucumber, onion, vinegar, sugar, salt, and pepper in a medium bowl. Toss gently to combine; let stand for 30 minutes.
Stir in dill or chives just before serving.