Canon: Yoda is omnivorous
In Canon, Yoda is omnivorous. In the comic "The Trial of Dagobah", from the 2019 Age of Rebellion comic special, Yoda is in exile on Dagobah, and finds he has plenty of edible plants, but no meat:
Narration: ...sleeps. But fitfully. This night, like so many others before it, haunted. By the dream. Of anger. Of hate. Of suffering. He stirs awake... ...to a reminder that his larder is bare. Plants, yes—always plants—but no meat.
He sets out to hunt with a bow and arrow:
Narration: They run in herds, these creatures. The best source of meat the old master's been able to find here. He carries no lightsaber. He would never diminish the weapon of the Jedi in pursuit of filling his own belly. In any case, he resolved long ago he would never wield another lightsaber.
Legends: Yoda is even more omnivorous
From Yoda: Dark Rendezvous:
Frankly, even beings who would follow Yoda to the gates of Death preferred not to share his meals. Perhaps traveling the length and breadth of the galaxy had given the Master a more wide-ranging palate than mere mortals, or perhaps he was so evolved a being that he didn't care what he put into his body; or perhaps when one lived eight-hundred-odd years all one's taste buds died. Whatever the reason, the old gnome's preferred foods were notoriously disgusting. He was fond of hot, swampy stews that smelled like boiled mud; small dirt-colored appetizers that jiggled uneasily on the plate; and viscous drinks, both hot and cold, that ran the gamut from burned syrup to grainy sludge. As Master Leem settled on the bench beside him, the oldest and greatest of the Jedi was peering happily into a bowl of dark brown-and-gray stew, studded with little floating chunks of what looked like raw animal fat and spackled with the scales of some small reptile. The whole concoction smelled like dead womprat that had been left out in the sun.
"Fought well this morning, your Padawan did," Yoda mumbled around a mouthful of stew.
(Source: Yoda: Dark Rendezvous, Chapter 4, page 83 of first edition)