diff options
author | Wojciech Kępka | 2021-06-18 13:41:49 +0000 |
---|---|---|
committer | GitHub | 2021-06-18 13:41:49 +0000 |
commit | 1bb3b778adf6d03c10898f17858c6881afcd3d1f (patch) | |
tree | e0904888cf55050e220af8b86b89911b8bc068c9 /helix-term/src | |
parent | b1cb98283dacf98fb15e5fbcdb12d0be4161190b (diff) |
Don't derive `Default` for `GlobalConfig` (#297)
We shouldn't derive Default because `lsp_progress` by default should be turned on (opt out).
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/config.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-term/src/config.rs b/helix-term/src/config.rs index d2bbe84f..e5e17753 100644 --- a/helix-term/src/config.rs +++ b/helix-term/src/config.rs @@ -5,11 +5,16 @@ use serde::{de::Error as SerdeError, Deserialize, Serialize}; use crate::keymap::{parse_keymaps, Keymaps}; -#[derive(Default)] pub struct GlobalConfig { pub lsp_progress: bool, } +impl Default for GlobalConfig { + fn default() -> Self { + Self { lsp_progress: true } + } +} + #[derive(Default)] pub struct Config { pub global: GlobalConfig, |