on master help sign in
Add missing `theme` to toml config
59c59dewojciechkepka
helix-term/src/config.rs+2−1
@@ -28,6 +28,7 @@ pub struct Config {
28#[derive(Serialize, Deserialize)]
28#[derive(Serialize, Deserialize)]
29#[serde(rename_all = "kebab-case")]
29#[serde(rename_all = "kebab-case")]
30struct TomlConfig {
30struct TomlConfig {
31+ theme: Option<String>,
31 lsp_progress: Option<bool>,
32 lsp_progress: Option<bool>,
32 keys: Option<HashMap<String, HashMap<String, String>>>,
33 keys: Option<HashMap<String, HashMap<String, String>>>,
33}
34}
@@ -41,7 +42,7 @@ impl<'de> Deserialize<'de> for Config {
41 Ok(Self {
42 Ok(Self {
42 global: GlobalConfig {
43 global: GlobalConfig {
43 lsp_progress: config.lsp_progress.unwrap_or(true),
44 lsp_progress: config.lsp_progress.unwrap_or(true),
44− theme: None,
45+ theme: config.theme,
45 },
46 },
46 keymaps: config
47 keymaps: config
47 .keys
48 .keys