By default, only swords are recognized as weapons in EnchantmentCategory#WEAPON. This mod modifies the logic to include tridents as well.
With Tridenchantability, you can:
The configuration file config/tridenchantability.json is reloadable in-game using /reload.