We study aspects of 3d mathcal{N}=2 supersymmetric gauge theories on the product of a line and a Riemann surface. Performing a topological twist along the Riemann surface leads to an effective supersymmetric quantum mechanics on the line. We propose a construction of the space of supersymmetric ground states as a graded vector space in terms of a certain cohomology of generalized vortex moduli spaces on the Riemann surface. This exhibits a rich dependence on deformation parameters compatible with the topological twist, including superpotentials, real mass parameters, and background vector bundles associated to flavour symmetries. By matching spaces of supersymmetric ground states, we perform new checks of 3d abelian mirror symmetry.