Cannot install custom Twig extension plugin
My guess is it's because your NbspPlugin class has the namespace of craft, when it should be namespace Craft.

FWIW, generating Craft plugin boilerplate code through something like https://pluginfactory.io/ is a great way to save sanity and avoid things like this. :)