It's not really a molecule, so you don't really have a Lewis structure consisting of one magnesium and two boron atoms. For a lattice structure see Wikipedia. The lattice structure is hexagonal with alternating magnesium and boron layers, the boron layers having twice as many atoms per unit area as the magnesium layers.
The referenced picture is given at https://en.m.wikipedia.org/wiki/File:Magnesium-diboride-3D-balls.png and consists of green balls (magnesium) plus pink balls (boron), the latter covalently linked with each other. If we model the magnesium as $2+$ ions (yes, the electronegativity difference is only 0.8, but de la Mora at al. indicates that the magnesium-boron bonding is predominantly ionic), then each boron atom has one negative charge and so becomes isoelectronic with carbon. Then each of the hexagonal, covalently bonded boron layers is isoelectronic and isostructural with a graphite layer.