Seol mar théacs é seo: Learning recurrent dynamics in spiking networks