Thank you!
You wrote:
> \version "2.20"
>
> harmony = \chordmode { a1:m s1 f1:m7 s1 }
> tune = { s1 s1 s1 s1 }
>
> chordsOnStaff = \with {
> % Force the baselines to match.
> \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
> #'((basic-distance . 0) (minimum-distance . 0)
> (padding . -inf.0) (stretchability . 0))
> % Adjust to one staff space lower.
> \override ChordName.extra-offset = #'(0 . -1)
> }
>
> \score {
> <<
> \new ChordNames \with \chordsOnStaff \harmony
> \new Staff \tune
> >>
> }