|
|
|
@ -22,6 +22,7 @@ use crate::{
|
|
|
|
|
|
|
|
|
|
use log::{error, warn};
|
|
|
|
|
use std::{
|
|
|
|
|
fmt::Debug,
|
|
|
|
|
io::{stdin, stdout, Write},
|
|
|
|
|
sync::Arc,
|
|
|
|
|
time::{Duration, Instant},
|
|
|
|
@ -269,7 +270,12 @@ impl Application {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn refresh_config(&mut self) {
|
|
|
|
|
let config = Config::load(helix_loader::config_file()).unwrap_or_default();
|
|
|
|
|
let config = Config::load(helix_loader::config_file())
|
|
|
|
|
.map_err(|err| {
|
|
|
|
|
self.editor.set_error(err.to_string());
|
|
|
|
|
Config::default()
|
|
|
|
|
})
|
|
|
|
|
.unwrap();
|
|
|
|
|
// Just an example to start; Some config properties like "theme" are a bit more involved and require a reload
|
|
|
|
|
if let Some(theme) = config.theme.clone() {
|
|
|
|
|
let true_color = self.true_color();
|
|
|
|
|