git: Make inline blame padding configurable (#33631)
Just like with diagnostics, adding a configurable padding to inline blame Release Notes: - Added configurable padding to inline blame --------- Co-authored-by: Cole Miller <cole@zed.dev> Co-authored-by: Peter Tripp <petertripp@gmail.com>
This commit is contained in:
parent
35cd1b9ae1
commit
cdfb3348ea
6 changed files with 60 additions and 19 deletions
|
@ -1795,7 +1795,6 @@ Example:
|
|||
{
|
||||
"git": {
|
||||
"inline_blame": {
|
||||
"enabled": true,
|
||||
"delay_ms": 500
|
||||
}
|
||||
}
|
||||
|
@ -1808,7 +1807,6 @@ Example:
|
|||
{
|
||||
"git": {
|
||||
"inline_blame": {
|
||||
"enabled": true,
|
||||
"show_commit_summary": true
|
||||
}
|
||||
}
|
||||
|
@ -1821,13 +1819,24 @@ Example:
|
|||
{
|
||||
"git": {
|
||||
"inline_blame": {
|
||||
"enabled": true,
|
||||
"min_column": 80
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
5. Set the padding between the end of the line and the inline blame hint, in ems:
|
||||
|
||||
```json
|
||||
{
|
||||
"git": {
|
||||
"inline_blame": {
|
||||
"padding": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Hunk Style
|
||||
|
||||
- Description: What styling we should use for the diff hunks.
|
||||
|
|
|
@ -223,6 +223,7 @@ TBD: Centered layout related settings
|
|||
"enabled": true, // Show/hide inline blame
|
||||
"delay": 0, // Show after delay (ms)
|
||||
"min_column": 0, // Minimum column to inline display blame
|
||||
"padding": 7, // Padding between code and inline blame (em)
|
||||
"show_commit_summary": false // Show/hide commit summary
|
||||
},
|
||||
"hunk_style": "staged_hollow" // staged_hollow, unstaged_hollow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue