code: func (config *Config) WritePluginConfig() error {
  	// Marshal JSON
  	rawConfig, err := json.MarshalIndent(config.pluginsConfig, "", "  ")
  	if err != nil {
  		return err
  	}
  
  	pluginFileDir := filepath.Join(config.PluginHome())
  	err = os.MkdirAll(pluginFileDir, 0700)
  	if err != nil {
  		return err
  	}
  
  	// Write to file
  	return ioutil.WriteFile(filepath.Join(pluginFileDir, "config.json"), rawConfig, 0600)
  }
docs: // WritePluginConfig writes the plugin config to config.json in the plugin home
  // directory.