We perform first-principles calculations on electronic structures of armchair MoS2 nanoribbons (AMoS(2)NRs) passivated by non-metal atoms. In contrast to bare AMoS(2)NR (AMoS(2)NR-bare) or purely hydrogen (H) edge-terminated AMoS(2)NR (AMoS(2)NR-H), it is found that H and oxygen (O) hybrid edge-terminated AMoS(2)NR (AMoS(2)NR-H-O) is more stable. AMoS(2)NR-H-O exhibits a direct band gap of about 1.43 eV, which is larger than those of pristine AMoS(2)NR (about 0.61 eV) and AMoS(2)NR-H (about 0.60 eV) and even exceeds the band gap of bulk MoS2 (about 0.86 eV) and is close to that of monolayer MoS2 (about 1.67 eV). The remarkable band gap of AMoS(2)NR-H-O is attributed to the charge redistribution on the edge atoms of the MoS2 nanoribbon, especially the charges on the edge Mo atoms. Detailed calculations of AMoS(2)NR-H-O reveal that over 70% of the total density of states (DOS) of the conduction band minimum and the valence band maximum are contributed by the Mo atoms. In particular, edge Mo atoms play a crucial role in modulating the electronic structure. In addition, we have studied a series of functionalized AMoS(2)NR-H-X with X = S, F, C, N, and P, respectively. It is found that AMoS(2)NR-H-X with X = S, F, C possess remarkable electronic band gaps, whereas AMoS(2)NR-H-X with X = F, N, P are metallic. Our studies suggest that non-metal atom hybrid passivation can efficiently tune the electronic band gap of MoS2 nanoribbon and open a new route to obtain a MoS2-based practical nanoelectronic device and a photovoltaic device.