Distracted breastfeeding

My guy is almost 6 months old and just is so distracted while feeding. It is so hard to get him to eat! Sometimes going in a dark room with no noise will work but even that sometimes doesn’t work. He is just flapping his arm and kicks his legs and wants to look around. It’s so frustrating. Anyone have any good tips for this?