Skip to content

Commit

Permalink
Don't derive Default for GlobalConfig (#297)
Browse files Browse the repository at this point in the history
We shouldn't derive Default because `lsp_progress` by default should be turned on (opt out).
  • Loading branch information
vv9k authored Jun 18, 2021
1 parent b1cb982 commit 1bb3b77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helix-term/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1bb3b77

Please sign in to comment.