Has he been like this all along, or I'd it just start? There's a growth spurt that hits around 23 wks that could be causing the problem.
Try swaddling. If LO fights it, do the final before bed diaper change, swaddle, then stick them right on your breast. Once he latches on, he'll likely stop being bothered by the swaddle. It's worked great for us. DD just nurses to sleep once she latches on.
Last night was a lot like you're describing, though, and I think it's partly to do with growth spurt number 3. I don't know why they bother differentiating between the three different growth spurts in the beginning. It's basically one solid spurt for 6 wks with days thrown in where things are super.
Anyway, some things to try. If you're nursing/holding LO to sleep, don't put them down as soon as their eyes are closed. Wait about 20 min so she gets through her REM cycle, when she'll be harder to disturb. Try different sleep outfits. DD can be fussy about what she sleeps in. Some nights it's a swaddle, some nights a sleeper, some nights a long sleeved onesie and socks with a blanket over her legs tucked under the mattress.
If LO is gassy, try different burping positions, make sure you're feeding with her head above her belly, and you can always try gas drops like Mylicon.
White noise is great, too. We don't have a noise machine, so last night when u DH ally thought if white noise I downloaded an app on my iPad, stuck it not to her cosleeper, and we were other out within 20 min. Not sure if it was the noise or she finally exhausted herself from all the crying, but either way, we finally got some sleep.