with NMM open in Fallout 4 click the icon at the top that looks like a folder with a red arrow and choose "Open Game Folder". Alternatively open your Fallout 4 game folder.
Find a shortcut in the folder named "plugins"
open it with notepad and you should see something like:
Fallout4.esm
DLCRobot.esm
Homemaker.esm
SpringCleaning.esm
ArmorKeywords.esm
Worsin's Garage.esm
SettlementKeywords.esm
CROSS_CosmeticFramework.esm
DX Adventurer Outfit.esp
el_AgentOutfit.esp
AK2047.esp
AK47.esp
EferasBetterBeds.esp
BossChestsHaveLegendaries.esp
BrighterSettlementLights_ExtraBrightv1.1.esp
InteriorGenerators.esp
BuildYourOwnVault.esp
CleanSettlement Beds.esp
combat_PA.esp
tumbajamba Advanced Engineering.esp
combat_PA - tAE.esp
BattleRifle.esp
DD_Floor_brace.esp
DD_bobblehead_stands.esp
DD_melee_Buster.esp
DD_M79_Launcher_woooot.esp
DD_bleu_Ump_Extreme_Lore_friendly_edition.esp
DD_build_a_castle_01.esp
DDP_Elevators_mark1.esp
Dont Throw Stones.esp
DD_Prelude_273.esp
DDP_Ramps_mark1.esp
DD_All_the_COncrete.esp
Eli_ArmourCollection.esp
ExpandedSettlementBuildings.esp
Extended weapon mods.esp
FunctionalDisplays.esp
FunctionalDisplays-MISC-Vanilla.esp
Glock20.esp
GlovesOfTheCommonwealth.esp
Glowing Animals Emit Light.esp
GruffyddsSignsAndPosters.esp
G3.esp
Homemaker - SK Integration Patch.esp
Homemaker - Streetlights Use Passive Power.esp
zWInsanity.esp
Insignificant Object Remover.esp
Lore Friendly Posters.esp
M1911.esp
M45A1.esp
M4A1.esp
M4A1_Rebalance01.esp
GatlingRifle.esp
m82a.esp
M9.esp
Mac11.esp
mk14.esp
MojaveImports.esp
FunctionalDisplays-Drinks-MI.esp
MoreSpawns_Medium.esp
N7-Armor-Standalone_by_Ruddy88.esp
NukaRadBans.esp
NX Pro - Farm Core.esp
NX Pro - Harvest Overhaul.esp
NX Pro - Farm Core - Homemaker.esp
NX Pro - Farm Core - Valdacil's Item Sorting.esp
OCDecorator.esp
OCDispenser.esp
OctaviusSentibar_Labels.esp
Parang Machete.esp
Pip-Boy Flashlight.esp
R91M.esp
RangerSequoiaCraft.esp
Realistic Survival Damage.esp
AES_Renovated Furniture.esp
RepairSanctuary.esp
Rhino.esp
Scrap Everything.esp
SettleObjExpandPack.esp
SettleObjExpandPack-HomemakerKeyPatch.esp
SkjAlert_RS+.esp
SC_ExpandedScrapList.esp
strong_PA.esp
strong_PA - tAE.esp
M14.esp
VisibleWeapons.esp
My_Minutemen.esp
AK-M14Standalone.esp
AK_AK2047Standalone.esp
AK_AK47Standalone.esp
AK_G20Standalone.esp
AK_G3Standalone.esp
AK_G67Standalone.esp
AK_KatanaStandalone.esp
AK_M1911Standalone.esp
AK_M82AStandalone.esp
AK_M9Standalone.esp
AK_Mac11Standalone.esp
AK_ParangStandalone.esp
AK_R91Standalone.esp
AK_RhinoStandalone.esp
Weaponry Overhaul.esp
FunctionalDisplays-Weapons-WO.esp
SkibsWH77LSW.esp
AK_WH77Standalone.esp
WAYN_CompanionTracking.esp
WIPAG - Paint Garage - Full (Hard).esp
WIPAG - Decal Station.esp
WIPAG - Materials Overhaul.esp
WIPAG - Mod Overhaul.esp
WIPAG - Model-X.esp
WoodenPrefabsixtended.esp
Workshop_Planters.esp
BetterStores.esp
Armorsmith Extended.esp
CUTE.esp
Rangergearnew.esp
AK_NCRAMR.esp
Synth MegaPack.esp
VisibleCompanionAffinity.esp
VisibleCompanionAffinity_AffinityCheck.esp
CraftableAmmo.esp
CraftableAmmo_plus.esp
LegendaryModification.esp
LegendaryModification2LM.esp
LegendaryMod2LMWeaponryOverhaul.esp
LegendaryModificationMisc.esp
LegendaryModificationCSA.esp
LegendaryModificationGroknak.esp
Eli_Crafting Shiz 9000.esp
Crafting Workbench.esp
Crafting Workbenches - Ammo.esp
Crafting Workbenches - Ammo Expanded.esp
Crafting Workbenches - Ammo Special.esp
Crafting Workbenches - Faction and Quest Requirements.esp
Crafting Workbenches - Junk Items.esp
Crafting Workbenches - Power Armor.esp
Crafting Workbenches - Pre War and Manufactured.esp
TrueStormsFO4.esp
Nuclear weather-TSCompat.esp
TrueStormsFO4-ClimateSettings.esp
TakeCover.esp
ImmersiveVendors.esp
RaiderOverhaul.esp
ASVektor.esp
BasemantLiving.esp
BetterSettlers.esp
BetterSettlersNoLollygagging.esp
BetterSettlersCleanFacePack.esp
BetterSettlersMortalSoldiersPack.esp
Crossbow.esp
DarkerNights.esp
BetterNightVision.esp
DesertEagle50AE.esp
AK_DesertEagleStandalone.esp
LK05.esp
More Where That Came From Diamond City.esp
OWR.esp
SCAR-LK.esp
M2216.esp
AK_M2216Standalone.esp
USP 45.esp
AK_LeveledLists.esp
AK_USP45Standalone.esp
ImmersiveFastTravel.esp
PersonalPackBrahmin.esp
AzarPonytailHairstyles.esp
Scouter_V1.1_by_Ruddy88.esp
AnS Wearable Backpacks and Pouches.esp
AnS Wearable Backpacks and Pouches - Ballistic Weave.esp
AutoDoors.esp
SettleObjExpandPack-AutoDoorsPatch.esp
AdvSettleTurretSet-Real.esp
Business Settlements.esp
Combat_Helmet_Illumination 1.2.esp
DD_Michael_Faraday_Time_yo.esp
CampoGiro.esp
AK_CampoGiroStandalone.esp
Carbon Fiber Combat Rifle.esp
AK_CarbonFibreStandalone.esp
Skibs223Pistol.esp
AK_223Standalone.esp
CROSS_Cybernetics.esp
CROSS_Cybernetics_NoRobotFootStepSounds.esp
GrenadePistol.esp
AK_GrenadePistolStandalone.esp
IF88TacShotgun.esp
AK_IF88Standalone.esp
WLightSaber.esp
AK_LightsaberStandalone.esp
Alternatively type them all out one by one.
---------------------------------------------------------------------------------------------------------------------------------------------
Before doing this though I would recommend, when you're in NMMthat you look into the plugins tab (next to mods tab) and if any of those files are red click it and check what .esp/.esm you are missing. If there is red plugins then download the mod that holds them a simple google search like "fallout 4 nmm M2216.esp"