From 1e1a2807dba68d27f3180644a90b95063323ed16 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Wed, 17 Apr 2024 12:53:53 +0200 Subject: [PATCH] Document inline git blame (#10675) Release Notes: - N/A --- docs/src/configuring_zed.md | 51 +++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/docs/src/configuring_zed.md b/docs/src/configuring_zed.md index 762ab15ed8..53b9669e13 100644 --- a/docs/src/configuring_zed.md +++ b/docs/src/configuring_zed.md @@ -572,7 +572,9 @@ To interpret all `.c` files as C++, and files called `MyLockFile` as TOML: ```json { - "git_gutter": "tracked_files" + "git": { + "git_gutter": "tracked_files" + } } ``` @@ -580,7 +582,52 @@ To interpret all `.c` files as C++, and files called `MyLockFile` as TOML: ```json { - "git_gutter": "hide" + "git": { + "git_gutter": "hide" + } +} +``` + +### Inline Git Blame + +- Description: Whether or not to show git blame information inline, on the currently focused line (requires Zed `0.132.0`). +- Setting: `inline_blame` +- Default: + +```json +{ + "git": { + "inline_blame": { + "enabled": true + } + } +} +``` + +**Options** + +1. Disable inline git blame: + +```json +{ + "git": { + "inline_blame": { + "enabled": false + } + } +} +``` + +2. Only show inline git blame after a delay (that starts after cursor stops moving): + +```json +{ + "git": { + "inline_blame": { + "enabled": false, + "delay_ms": 500 + } + } } ```