 
   # Internal: Updates the plugin activation state according to the current
   # config.
+  #
+  # name - The identifying {String} name of the plugin.
   updatesPluginActivationState: (name) ->
     plugin = @plugins[name]
 


  # Public: Unregisters a plugin from the minimap.
  #
  # name - The identifying name of the plugin to unregister.
  unregisterPlugin: (name) ->
    plugin = @plugins[name]
    @unregisterPluginControls(name) if atom.config.get('minimap.displayPluginsControls')

  # 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
