My listings have the numbering 1.1, 1.2, 1.3 - 2.1, 2.2, ... I need them to be continuous regardless of the chapter or section, being 1, 2, 3, 4, 5, 6, ...
The commands i used on listings:
\usepackage{listings}
\renewcommand{\lstlistingname}{Trecho de código}
\renewcommand{\lstlistlistingname}{Lista de trechos de código}
\chapter, issue\lstset{numberbychapter=false}in the document preamble." – Torbjørn T. Jun 18 '19 at 22:58