Use electric indent mode, not smartparens. It's better