One story goes that onion weeed / three cornered leek / allium triquetrum was used historically in the UK as a companion plant for apple orchards.  Like other alliums – onions, garlic, leeks – they keep pests at bay and increase tree health.  And they are delicious!