   # Internal: When the `minimap.displayPluginsControls` setting is toggled,
   # this function will register the commands and setting to manage the plugin
   # activation from the minimap settings.
+  #
+  # name - The identifying {String} name of the plugin.
+  # plugin - The plugin {Object}.
   registerPluginControls: (name, plugin) ->
     settingsKey = "minimap.plugins.#{name}"
     @configDefaults.plugins[name] = true

  # Internal: When the `minimap.displayPluginsControls` setting is toggled,
  # this function will unregister the commands and setting that was created
  # previously.
  unregisterPluginControls: (name) ->
    atom.config.unobserve "minimap.plugins.#{name}"
    atom.workspaceView.off "minimap:toggle-#{name}"


  # Public: Registers a minimap `plugin` with the given `name`.
  #
  # name - The identifying {String} name of the plugin.
  #        It will be used as activation settings name as well
  #        as the key to unregister the module.
  # plugin - The plugin {Object} to register.
  registerPlugin: (name, plugin) ->
    @plugins[name] = plugin
