According to a new study published in JAMA Internal Medicine, consuming a largely plant-based diet can help lower your risk of developing type 2 diabetes.