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 here 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.[1] 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.
Reference
1.
Pablo de la Mora, Miguel Castro, Gustavo Tavizon (2002),
"Comparative study of the electronic structure of alkaline-earth borides (MeB2; Me=Mg, Al, Zr, Nb, and Ta) and their normal-state conductivity",
Journal of Solid State Chemistry 169(2), 168-175, ISSN 0022-4596,
https://doi.org/10.1016/S0022-4596(02)00045-2.