@@ -7,14 +7,14 @@ Author: Sindre T. Strøm
77
88==============================================================================
99
10- INTRODUCTION *diffview-nvim -introduction*
10+ INTRODUCTION *diffview-introduction*
1111
1212Vim's diff mode is pretty good, but there is no convenient way to quickly bring
1313up all modified files in a diffsplit. This plugin aims to provide a simple,
1414unified, single tabpage interface that lets you easily review all changed files
1515for any git rev.
1616
17- USAGE *diffview-nvim -usage*
17+ USAGE *diffview-usage*
1818
1919Quick-start: `:DiffviewOpen` to open a Diffview that compares against the
2020index.
@@ -30,15 +30,16 @@ Diffviews are automatically updated:
3030
3131Updates are not run unless the current tabpage is a Diffview.
3232
33- CONFIGURATION *diffview-nvim-configuration *
33+ CONFIGURATION *diffview-config *
3434
3535Example configuration with default settings:
3636>
3737 -- Lua
3838 local cb = require'diffview.config'.diffview_callback
3939 require'diffview'.setup {
4040 diff_binaries = false, -- Show diffs for binaries
41- use_icons = true -- Requires nvim-web-devicons
41+ use_icons = true, -- Requires nvim-web-devicons
42+ enhanced_diff_hl = false, -- See |diffview-config-enhanced_diff_hl|
4243 signs = {
4344 fold_closed = "",
4445 fold_open = "",
@@ -123,13 +124,20 @@ Example configuration with default settings:
123124 }
124125<
125126
126- LAYOUT *diffview-nvim-layout*
127+ enhanced_diff_hl *diffview-config-enhanced_diff_hl*
128+ Type: `boolean ` , Default: `false`
129+
130+ Enable/disable enhanced diff highlighting. When enabled, | hl-DiffAdd |
131+ in the left diff buffer will be highlighted as | hl-DiffDelete | , and
132+ the delete fill-chars will be highlighted more subtly.
133+
134+ LAYOUT *diffview-layout*
127135
128136The diff windows can be aligned either with a horizontal split or a vertical
129137split. To change the alignment add either `horizontal ` or `vertical ` to your
130138'diffopt' .
131139
132- COMMANDS *diffview-nvim -commands*
140+ COMMANDS *diffview-commands*
133141
134142 *:DiffviewOpen*
135143:DiffviewOpen [git-rev] [args] [ -- {paths...} ]
@@ -194,7 +202,7 @@ COMMANDS *diffview-nvim-commands*
194202:DiffviewRefresh Update stats and entries in the file list of the
195203 current Diffview.
196204
197- MAPS *diffview-nvim -maps*
205+ MAPS *diffview-maps*
198206
199207All listed maps are the defaults, but all mappings can be configured. Most of
200208the file panel mappings should also work from the view if they are added to
@@ -205,7 +213,7 @@ really make sense specifically in the file panel, such as `next_entry`,
205213these will target the file currently open in the view rather than the file
206214under the cursor in the file panel.
207215
208- *diffview-nvim -file-inference*
216+ *diffview-file-inference*
209217File inference~
210218
211219Mappings that target a file will infer the target file according to a set of
@@ -216,77 +224,77 @@ simple rules:
216224 - If the cursor is in a file panel, the target file will be determined by
217225 the entry under the cursor.
218226
219- *diffview-nvim -maps-view*
227+ *diffview-maps-view*
220228View maps~
221229
222230These maps are available in the diff buffers while a Diffview is the current
223231tabpage.
224232
225- *diffview-nvim -maps-select_next_entry*
233+ *diffview-maps-select_next_entry*
226234<Tab> Open the diff for the next file.
227235
228- *diffview-nvim -maps-select_prev_entry*
236+ *diffview-maps-select_prev_entry*
229237<S-Tab> Open the diff for the previous file.
230238
231- *diffview-nvim -maps-goto_file*
239+ *diffview-maps-goto_file*
232240gf Open the local version of the file in a new split in a
233241 different tabpage. This will target your previous
234242 (last accessed) tabpage first. If you have no
235243 non-diffview tabpages open, the file will open in a
236244 new tabpage. See | diffview-nvim-file-inference | for
237245 details on how the file target is determined.
238246
239- *diffview-nvim -maps-goto_file_split*
247+ *diffview-maps-goto_file_split*
240248<C-w><C-f> Open the local version of the file in a new split. See
241249 | diffview-nvim-file-inference | for details on how the
242250 file target is determined.
243251
244- *diffview-nvim -maps-goto_file_tab*
252+ *diffview-maps-goto_file_tab*
245253<C-w> gf Open the local version of the file in a new tabpage.
246254 See | diffview-nvim-file-inference | for details on how
247255 the file target is determined.
248256
249- *diffview-nvim -maps-toggle_files*
257+ *diffview-maps-toggle_files*
250258<leader> b Toggle the file panel.
251259
252- *diffview-nvim -maps-focus_files*
260+ *diffview-maps-focus_files*
253261<leader> e Bring focus to the file panel.
254262
255- *diffview-nvim -maps-file-panel*
263+ *diffview-maps-file-panel*
256264File panel maps~
257265
258266These maps are available in the file panel buffer.
259267
260- *diffview-nvim -maps-next_entry*
268+ *diffview-maps-next_entry*
261269j Bring the cursor to the next file entry
262270<Down>
263271
264- *diffview-nvim -maps-prev_entry*
272+ *diffview-maps-prev_entry*
265273k Bring the cursor to the previous file entry
266274<Up>
267275
268- *diffview-nvim -maps-select_entry*
276+ *diffview-maps-select_entry*
269277o Open the diff for the selected file entry.
270278<CR>
271279<2-LeftMouse>
272280
273- *diffview-nvim -maps-toggle_stage_entry*
281+ *diffview-maps-toggle_stage_entry*
274282- Stage/unstage the selected file entry.
275283
276- *diffview-nvim -maps-stage_all*
284+ *diffview-maps-stage_all*
277285S Stage all entries.
278286
279- *diffview-nvim -maps-unstage_all*
287+ *diffview-maps-unstage_all*
280288U Unstage all entries.
281289
282- *diffview-nvim -maps-restore_entry*
290+ *diffview-maps-restore_entry*
283291X Revert the selected file entry to the state from the
284292 left side of the diff. This only works if the right
285293 side of the diff is showing the local state of the
286294 file. A command is echoed that shows how to undo the
287295 change. Check `:messages ` to see it again.
288296
289- *diffview-nvim -maps-refresh_files*
297+ *diffview-maps-refresh_files*
290298R Update the stats and entries in the file list.
291299
292300<Tab> Open the diff for the next file.
@@ -299,23 +307,23 @@ R Update the stats and entries in the file list.
299307
300308<leader> e Bring focus to the file panel.
301309
302- *diffview-nvim -maps-file-history-panel*
310+ *diffview-maps-file-history-panel*
303311File history panel maps~
304312
305313These mappings are available in the file history panel buffer (the panel
306314listing the commits).
307315
308- *diffview-nvim -maps-options*
316+ *diffview-maps-options*
309317g! Open the options panel.
310318
311- *diffview-nvim -maps-open_in_diffview*
319+ *diffview-maps-open_in_diffview*
312320<C-d> Open the commit entry under the cursor in a Diffview.
313321
314- *diffview-nvim -maps-open_all_folds*
322+ *diffview-maps-open_all_folds*
315323zR Open the fold on all commit entries (only when showing
316324 history for multiple files).
317325
318- *diffview-nvim -maps-close_all_folds*
326+ *diffview-maps-close_all_folds*
319327zM Close the fold on all commit entries (only when showing
320328 history for multiple files).
321329
@@ -339,7 +347,7 @@ o Open the diff for the selected item.
339347
340348<leader> e Bring focus to the file history panel.
341349
342- *diffview-nvim -maps-file-history-option-panel*
350+ *diffview-maps-file-history-option-panel*
343351File history option panel maps~
344352
345353These mappings are available from the file history options panel. The option
0 commit comments