Make magit as a plugin.