File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments