Lompoc beat Santa Maria 2-1 in an LPL baseball game Thursday.