Commit b3a763f
committed
feat(hl): Add plugin local groups for all the diff highlights
Adds new highlight groups shadowing all the default diff highlights:
- `DiffviewDiffAdd` -> `DiffAdd`
- `DiffviewDiffDelete` -> `DiffDelete`
- `DiffviewDiffChange` -> `DiffChange`
- `DiffviewDiffText` -> `DiffText`
These are set as 'winhl' in all the diff buffers created by the plugin.
This way users will be able to change the diff highlighting for Diffview
only, without affecting the use of these groups outside of the plugin.
OTHER CHANGES:
Having `enhanced_diff_hl` enabled will now highlight delete fill-chars
more subtly in *all* layouts. Not only `diff2*` layouts.
(fixes sindrets#340)1 parent ea5a749 commit b3a763f
File tree
4 files changed
+43
-12
lines changed- doc
- lua/diffview
- scene/views/standard
- vcs
4 files changed
+43
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
368 | 379 | | |
369 | 380 | | |
370 | 381 | | |
| |||
419 | 430 | | |
420 | 431 | | |
421 | 432 | | |
| 433 | + | |
422 | 434 | | |
423 | 435 | | |
424 | 436 | | |
| |||
904 | 916 | | |
905 | 917 | | |
906 | 918 | | |
907 | | - | |
| 919 | + | |
908 | 920 | | |
909 | 921 | | |
910 | 922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
463 | 467 | | |
464 | 468 | | |
465 | 469 | | |
| |||
468 | 472 | | |
469 | 473 | | |
470 | 474 | | |
471 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
472 | 480 | | |
473 | 481 | | |
474 | 482 | | |
475 | | - | |
476 | | - | |
477 | 483 | | |
478 | 484 | | |
479 | 485 | | |
| |||
482 | 488 | | |
483 | 489 | | |
484 | 490 | | |
| 491 | + | |
| 492 | + | |
485 | 493 | | |
486 | 494 | | |
487 | 495 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
0 commit comments