What to do

So I'm trying to get my son into a routine of eating 3 meals a day since he'll be 1 next month and only be eating real food but will constantly spit out stuff we give him he only eats like 2 things and idk what to do about it cause he likes the food so idk why he spits it out