on master help sign in
Don't derive `Default` for `GlobalConfig` (#297)

We shouldn't derive Default because `lsp_progress` by default should be turned on (opt out).

commit1bb3b778adf6d03c10898f17858c6881afcd3d1f authorWojciech Kępka <46892771+wojciechkepka@users.noreply.github.com> dateFri 18 Jun 2021, 15:41 (5 years ago) parentb1cb982
1 file changed+6−1
helix-term/src/config.rs+6−1
helix-term/src/config.rs+6−1
@@ -5,11 +5,16 @@ use serde::{de::Error as SerdeError, Deserialize, Serialize};
55
66use crate::keymap::{parse_keymaps, Keymaps};
77
8−#[derive(Default)]
98pub struct GlobalConfig {
109 pub lsp_progress: bool,
1110}
1211
12+impl Default for GlobalConfig {
13+ fn default() -> Self {
14+ Self { lsp_progress: true }
15+ }
16+}
17+
1318#[derive(Default)]
1419pub struct Config {
1520 pub global: GlobalConfig,