Nuh uh. Villager is an almost impossible matchup not because of projectile spam (though it is annoying).
Look where we have to recover 90% of the time, then look at Villager's forward smash. We may as well be Little Mac. You can try recovering high, but personally as a Villager main if I'm playing a Dedede I'm firing out a Lloid to distract you, then putting a sapling down and half-watering it waiting for you to up b onto the stage. If I force you to go low, bowling ball. Bye. If I force you to go high, I wait out the up b and chop my tree to hit you, or if you're too far I run at you with the axe and likely send you off stage again.
May as well be little mac? Oh come on lol. Yeah of course you want to avoid up B'ing onto the edge because of the bowling ball. Still, worst case scenario you can up B onto the stage and give away some damage from a flower pot or maybe a bowling ball or turnips nstead of getting spiked below stage by a falling bowling ball. And often I've been able to recover high over the tree...if villager even is able to get the tree up in time. Covering myself with a gordo thrown downwards onto the edge for distraction still has worked well while I recover. Villager has average mobility and a lot of his moves have lag, you can find way around him because of that. If he shields or pockets the gordo it's usually enough time to get back on stage.
Again, I'm no expert smasher and maybe it is hopeless against that rare villager master but against most I've played I've been able to recover high. And often times they won't have time to plant and grow the tree before I'm back on stage.
The armor on our up b does not protect us from the bowling ball. Villager wins in almost every conceivable edge guard situation against Dedede, and we struggle to do the same against his recovery. Also, throwing Gordos in the Villager MU is the #1 thing you need to avoid. Unless you are super close or they have the balloons on trying to recover it's not worth the 40% and huge knockback from a pocketed Gordo. Even if you're super close, a good Villager will just short hop nair it back at you as soon as they see the animation.
My advice against Villager: Have a secondary, because your only hope is going to be winning the neutral game and forcing him to recover. Which is not easy against a really good one.
Well....a reflected pocketed gordo can KO villager at any percent like this video shows so I'm never that worried when he pockets one since it is just as dangerous to him as it is to me (potentially more dangerous because DDD is heavy and he's not). Just got to be cautious and ready to hit that nair to reflect it:
https://www.youtube.com/watch?v=gjqKB1nIt9U.
Again I'm not saying villager isn't a terrible matchup for DDD. He is, but when I face a good one I feel like I have a chance unlike with other spammy characters. I've run into a few really awesome samus, duck hunt and megaman mains where I felt completely hopeless, but not yet a villager. Maybe I just haven't run into an amazing villager, that's a possibility.
But you can definitely take advantage of his average mobility, ending lag, terrible grab speed and terrible close range game. His slow falling speed and so-so mobility in particular.
Also the slingshot is the only projectile that's fast moving. Lloyd rocket and the tree are slow and have never scared me much when it comes to reflecting gordos back. The campy characters with multiple fast moving projectiles capable of reflecting back gordos scare me more. Villager to me is slower, laggier and overall just can't spam as hard or as fast as other campy types which is why I don't feel he's quite as bad to deal with.
But like I said I'm no expert, these are just my experiences mostly from playing with friends and online.