mirror of https://github.com/helix-editor/helix
fix: typos
I has originally named this feature `auto_read`, but changed the name to `auto_reload`, this changes some references I forgot to update to the new namepull/13963/head
parent
104bb7443f
commit
bf02b4dbea
|
@ -27,14 +27,14 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers {
|
||||||
let event_tx = completion::CompletionHandler::new(config).spawn();
|
let event_tx = completion::CompletionHandler::new(config).spawn();
|
||||||
let signature_hints = SignatureHelpHandler::new().spawn();
|
let signature_hints = SignatureHelpHandler::new().spawn();
|
||||||
let auto_save = AutoSaveHandler::new().spawn();
|
let auto_save = AutoSaveHandler::new().spawn();
|
||||||
let auto_read = AutoReloadHandler::new().spawn();
|
let auto_reload = AutoReloadHandler::new().spawn();
|
||||||
let document_colors = DocumentColorsHandler::default().spawn();
|
let document_colors = DocumentColorsHandler::default().spawn();
|
||||||
|
|
||||||
let handlers = Handlers {
|
let handlers = Handlers {
|
||||||
completions: helix_view::handlers::completion::CompletionHandler::new(event_tx),
|
completions: helix_view::handlers::completion::CompletionHandler::new(event_tx),
|
||||||
signature_hints,
|
signature_hints,
|
||||||
auto_save,
|
auto_save,
|
||||||
auto_reload: auto_read,
|
auto_reload,
|
||||||
document_colors,
|
document_colors,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -905,12 +905,12 @@ pub struct AutoReloadPeriodic {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
/// Enable auto reload periodically. Defaults to false.
|
/// Enable auto reload periodically. Defaults to false.
|
||||||
pub enable: bool,
|
pub enable: bool,
|
||||||
#[serde(default = "default_auto_read_interval")]
|
#[serde(default = "default_auto_reload_interval")]
|
||||||
/// Time interval in milliseconds. Defaults to [DEFAULT_AUTO_READ_INTERVAL].
|
/// Time interval in milliseconds. Defaults to [DEFAULT_AUTO_RELOAD_INTERVAL].
|
||||||
pub interval: u64,
|
pub interval: u64,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn default_auto_read_interval() -> u64 {
|
pub fn default_auto_reload_interval() -> u64 {
|
||||||
DEFAULT_AUTO_RELOAD_INTERVAL
|
DEFAULT_AUTO_RELOAD_INTERVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -930,7 +930,7 @@ where
|
||||||
focus_gained,
|
focus_gained,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
AutoReloadToml::AutoReload(auto_read) => Ok(auto_read),
|
AutoReloadToml::AutoReload(auto_reload) => Ok(auto_reload),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue