Enable inline-git-blame by default (#10632)

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-04-16 18:53:57 +02:00 committed by GitHub
parent c1c8a74c7f
commit c015b5c4cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 4 deletions

View file

@ -71,7 +71,8 @@ pub struct InlineBlameSettings {
/// Whether or not to show git blame data inline in
/// the currently focused line.
///
/// Default: false
/// Default: true
#[serde(default = "true_value")]
pub enabled: bool,
/// Whether to only show the inline blame information
/// after a delay once the cursor stops moving.
@ -80,6 +81,10 @@ pub struct InlineBlameSettings {
pub delay_ms: Option<u64>,
}
const fn true_value() -> bool {
true
}
#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq, Eq, JsonSchema)]
pub struct BinarySettings {
pub path: Option<String>,