 class PluginManagement extends Mixin
   # Internal: Stores the minimap plugin with their identifying name as key.
   plugins: {}
+  pluginsSubscriptions: {}
 
   # Public: Registers a minimap `plugin` with the given `name`.
   #


    atom.config.set(settingsKey, true) unless atom.config.get(settingsKey)?

    atom.config.observe settingsKey, =>
      @updatesPluginActivationState(name)

    atom.workspaceView.command "minimap:toggle-#{name}", =>
      atom.config.set settingsKey, not atom.config.get(settingsKey)
      @updatesPluginActivationState(name)

  # Internal: When the `minimap.displayPluginsControls` setting is toggled,
  # this function will unregister the commands and setting that was created

  # plugin - The plugin {Object} to register.
  registerPlugin: (name, plugin) ->
    @plugins[name] = plugin
    @pluginsSubscriptions[name] = new CompositeDisposable

    event = {name, plugin}
    @emit('plugin:added', event)
