Plugins.enablePluginAndSave method
Plugins › enablePluginAndSave
Unofficial
Enable a plugin by ID and save config for persistence.Signature:
enablePluginAndSave(id: string): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | {@link obsidian#Plugin} ID. |
Returns: Promise<void> — A promise that resolves when the plugin is enabled and the config is saved.