Add missing theme to toml config

This commit is contained in:
wojciechkepka 2021-06-20 04:17:43 +02:00 committed by Blaž Hrastnik
parent 29f77b9c5f
commit 59c59deb46

View file

@ -28,6 +28,7 @@ pub struct Config {
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
struct TomlConfig {
theme: Option<String>,
lsp_progress: Option<bool>,
keys: Option<HashMap<String, HashMap<String, String>>>,
}
@ -41,7 +42,7 @@ fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
Ok(Self {
global: GlobalConfig {
lsp_progress: config.lsp_progress.unwrap_or(true),
theme: None,
theme: config.theme,
},
keymaps: config
.keys