mirror of https://github.com/helix-editor/helix
Don't derive `Default` for `GlobalConfig` (#297)
We shouldn't derive Default because `lsp_progress` by default should be turned on (opt out).pull/286/head
parent
b1cb98283d
commit
1bb3b778ad
|
@ -5,11 +5,16 @@ use serde::{de::Error as SerdeError, Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::keymap::{parse_keymaps, Keymaps};
|
use crate::keymap::{parse_keymaps, Keymaps};
|
||||||
|
|
||||||
#[derive(Default)]
|
|
||||||
pub struct GlobalConfig {
|
pub struct GlobalConfig {
|
||||||
pub lsp_progress: bool,
|
pub lsp_progress: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for GlobalConfig {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self { lsp_progress: true }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub global: GlobalConfig,
|
pub global: GlobalConfig,
|
||||||
|
|
Loading…
Reference in New Issue