How to reduce the number of pages in pagination

I believe you’re using 2 custom functions one of them is emm_paginate_loop() you’re showing. But i saw that settings for that custom pagination is on function emm_paginate() and specifically “gap”:

‘gap’ – Default is 3 (int). The minimum number of pages before a gap is
replaced with ellipses (…).

But that only sets a minimum number…