Fixed typo

This commit is contained in:
Simon Cambier
2023-03-02 20:06:40 +01:00
parent 74db8fecf9
commit 0529b978cb
2 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ export const excerptBefore = 100
export const excerptAfter = 300
export const highlightClass = `suggestion-highlight omnisearch-highlight ${
settings.hightlight ? 'omnisearch-default-highlight' : ''
settings.highlight ? 'omnisearch-default-highlight' : ''
}`
export const eventBus = new EventBus()

View File

@@ -45,7 +45,7 @@ export interface OmnisearchSettings extends WeightingSettings {
welcomeMessage: string
/** If a query returns 0 result, try again with more relax conditions */
simpleSearch: boolean
hightlight: boolean
highlight: boolean
}
/**
@@ -301,8 +301,8 @@ export class SettingsTab extends PluginSettingTab {
'Will highlight matching results when enabled. See README for more customization options.'
)
.addToggle(toggle =>
toggle.setValue(settings.hightlight).onChange(async v => {
settings.hightlight = v
toggle.setValue(settings.highlight).onChange(async v => {
settings.highlight = v
await saveSettings(this.plugin)
})
)
@@ -384,7 +384,7 @@ export const DEFAULT_SETTINGS: OmnisearchSettings = {
showExcerpt: true,
renderLineReturnInExcerpts: true,
showCreateButton: false,
hightlight: true,
highlight: true,
showPreviousQueryResults: true,
simpleSearch: false,