Sorry, long ass post.
As I’ve been blathering about in the tags, Luffy’s learning a lot from Vivi - he’s got bravery and loyalty down, but she’s been demonstrating diplomacy and the need to think things through before haring off at top speed. Her backstory has also emphasized these traits.
Here’s where Luffy starts synthesizing it - his solution is most emphatically NOT diplomacy, but he’s thinking more than 2-3 steps ahead. (And because he’s Luffy, he does it by taking a straight cut to the action.)
Everyone in One Piece is learning and advancing; not just in terms of “I can now punch more things” but in leadership, independence, bravery, and all that good stuff.