Skip to content

Commit

Permalink
move setting to "advanced snippet settings"
Browse files Browse the repository at this point in the history
  • Loading branch information
artisticat1 committed Apr 27, 2024
1 parent 2dd8a50 commit 4852b29
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/settings/settings_tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,6 @@ export class LatexSuiteSettingTab extends PluginSettingTab {
})
);


new Setting(containerEl)
.setName("Don't trigger snippets when IME is active")
.setDesc("Whether to suppress the snippet triggering when an IME is active.")
.addToggle((toggle) => toggle
.setValue(this.plugin.settings.suppressSnippetTriggerOnIME)
.onChange(async (value) => {
this.plugin.settings.suppressSnippetTriggerOnIME = value;
await this.plugin.saveSettings();
})
);


this.addHeading(containerEl, "Conceal", "math-integral-x");

Expand Down Expand Up @@ -422,6 +410,17 @@ export class LatexSuiteSettingTab extends PluginSettingTab {
await this.plugin.saveSettings();
}));

new Setting(containerEl)
.setName("Don't trigger snippets when IME is active")
.setDesc("Whether to suppress the snippet triggering when an IME is active.")
.addToggle((toggle) => toggle
.setValue(this.plugin.settings.suppressSnippetTriggerOnIME)
.onChange(async (value) => {
this.plugin.settings.suppressSnippetTriggerOnIME = value;
await this.plugin.saveSettings();
})
);

new Setting(containerEl)
.setName("Code languages to interpret as math mode")
.setDesc("Codeblock languages where the whole code block should be treated like a math block, separated by commas.")
Expand Down

0 comments on commit 4852b29

Please sign in to comment.