Skip to content

Commit 52bf09d

Browse files
committed
feat(mini.nvim): sync to 5121416
1 parent f291542 commit 52bf09d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mini.nvim/doc/mini-diff.qmd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ used in custom statusline to show an overview of hunks in current buffer:
283283

284284
- `vim.b.minidiff_summary` is a table with the following fields:
285285

286-
- `source_name` - name of the active source.
286+
- `source_name` - name of the active source. This is the only present field
287+
if buffer's reference text is not (yet) set.
287288

288289
- `n_ranges` - number of hunk ranges (sequences of contiguous hunks).
289290

@@ -295,10 +296,10 @@ used in custom statusline to show an overview of hunks in current buffer:
295296

296297

297298
- `vim.b.minidiff_summary_string` is a string representation of summary
298-
with a fixed format. It is expected to be used as is. To achieve
299-
different formatting, use `vim.b.minidiff_summary` to construct one.
300-
The best way to do this is by overriding `vim.b.minidiff_summary_string`
301-
in the callback for [MiniDiff-update-event](mini-diff.qmd#minidiff-update-event) event:
299+
with a fixed format. Empty string if there is no reference text (yet).
300+
It is expected to be used as is. To achieve different formatting, use
301+
`vim.b.minidiff_summary` to construct one. The best way to do this is by
302+
overriding `vim.b.minidiff_summary_string` inside [MiniDiff-update-event](mini-diff.qmd#minidiff-update-event):
302303

303304
```lua
304305
local format_summary = function(data)

0 commit comments

Comments
 (0)