Carrier Corp. has agreed to keep in Indiana roughly half of the 2,100 jobs it had planned to shift to Mexico, after a lobbying effort from the incoming Trump administration.

In exchange for keeping about 1,000 jobs in Indiana, the company will receive new government incentives, said a person familiar with the matter. The terms of the agreement couldn’t immediately be learned.

Carrier,...