Onions and other alliums need phosphorous and potassium more than they do nitrogen, so look for a plant food that is balanced accordingly. You can pre-feed and improve soil structure at the same time by working in compost before planting.