By default, rests in a ChordNames context cause the “N.C.” symbol to be printed. This markup can be customized.
ChordNames