He was vomiting today and he does not want to eat well, I do not know what kind of food I should give him. He likes to eat everything we eat even sweets, ice cream, cookies. Yesterday he did not eat well only a few of their food.
A dog is carnivorous and this should be the fundamental basis of the diet, accompanied by variety of fruit and vegetables.
Cookies, ice cream and sweets should never be an ingredient to include in his diet, since it could lead to diabetes, especially chocolate which is highly toxic to dogs and can have fatal consequences.
If he is eating these kind of food often, it surely leaded to vomits and diarreas. Take him to a vet as soon as possible in order to perform a general checkup, and if needed, give him corresponding treatment.
Once there, you can inform yourself about dog nutrition.
All the best.