A heterogenized Ni-doped zeolitic imidazolate framework to guide efficient trapping and catalytic conversion of polysulfides for greatly improved lithium–sulfur batteries