\documentclass{report}

\usepackage[chapter]{minted}

\begin{document}
\chapter{Uno}
\section{First}
\begin{listing}
  \mint{cl}/car (cons 1 '(2))/
  \caption{Some listing}
  \label{lst:test}
\end{listing}

\section{Second}
See listing \ref{lst:test}.

\listoflistings
\end{document}
