with this keyword available you can create yourself a pretty simple patch on War Never Changes mod. To allow a companion to have infinite ammo just like how a settler does, it's being controlled by a keyword called TeammateDontUseAmmoKeyword (0023F1CA is the ID). if War Never Changes - Gameplay Overhaul has edited some records to companions in the NPC GRUP, while companion infinite ammo is placed after, then the edited records in War Never Changes will cease to work. After you load that companion infinite ammo mod later than any mods which make changes towards NPC GRUP (basically a group of NPC entries), make sure to fire up FO4Edit to check between them for unprecendented conflicts.