code: def get_plugin_settings(plugin, directory=None):
      
      repo = require_repo(directory)
      plugins = get_value(repo, 'plugins')
      return plugins.get(plugin) if isinstance(plugins, dict) else None
docs: Gets the settings for the specified plugin.