It was the 13th straight Davis Cup singles victory for Djokovic, who broke Nishioka’s serve three times in the first set and twice in the second at the Caja Magica.
The winner of Thursday’s series between Serbia and top-ranked France will guarantee a spot in the quarterfinals.
“It’s probably one of the biggest challenges that we can have in this competition,” said Djokovic, who hadn’t played in the Davis Cup since 2017. “Playing against France, one of the most successful nations in Davis Cup, and definitely one of the strongest teams.”
In the revamped Davis Cup format, teams play two singles and a doubles match, with the group winners advancing to the knockout stage along with the two best second-place finishers in the six groups.
Japan, which lost to France 2-1 on Tuesday, has no chance of advancing.
Germany can secure first place in the group if it beats Chile on Thursday. Argentina can still advance as a second-place finisher.
The new Davis Cup Finals is being played in World Cup-style with all 18 teams playing in a single venue in the same week. The tournament overhaul is the result of a 25-year partnership between the International Tennis Federation and Kosmos, a group co-founded by Barcelona soccer player Gerard Pique.