on master help sign in
Add missing `theme` to toml config
commit59c59deb464d347be796735b2d15f5a19a38bf3f authorwojciechkepka <wojtek.kepka@protonmail.com> dateSun 20 Jun 2021, 04:17 (5 years ago) parent29f77b9
1 file changed+2−1
helix-term/src/config.rs+2−1
helix-term/src/config.rs+2−1
@@ -28,6 +28,7 @@ pub struct Config {
2828#[derive(Serialize, Deserialize)]
2929#[serde(rename_all = "kebab-case")]
3030struct TomlConfig {
31+ theme: Option<String>,
3132 lsp_progress: Option<bool>,
3233 keys: Option<HashMap<String, HashMap<String, String>>>,
3334}
@@ -41,7 +42,7 @@ impl<'de> Deserialize<'de> for Config {
4142 Ok(Self {
4243 global: GlobalConfig {
4344 lsp_progress: config.lsp_progress.unwrap_or(true),
44− theme: None,
45+ theme: config.theme,
4546 },
4647 keymaps: config
4748 .keys