Andy Stewart
8a2f8199b6
Document 'updatetime' and 'signcolumn' more prominently
2023-07-14 14:29:31 +01:00
Andy Stewart
3531f4eddd
Remove obsolete link
2023-06-03 15:56:31 +01:00
Andy Stewart
538fba90fb
Mention clean/smudge filters in readme
...
See #796 .
2023-06-02 16:11:42 +01:00
Yuxin Wu
3475e974d6
Link highlight of GitGutterChangeDeleteLine to GitGutterChangeLine
2023-04-27 14:01:12 +01:00
Andy Stewart
44dbd57dd1
Document how to override defaults in g:gitgutter_floating_window_options
...
Closes #851 .
2023-03-16 09:48:08 +00:00
Andy Stewart
626541edeb
Heeds git's "assume unchanged" bit
...
I.e. does not diff files which should be assumed unchanged.
See:
git update-index --[no-]assume-unchanged -- <file>
git ls-files -v
Closes #826 .
2022-04-23 08:25:46 +01:00
Andy Stewart
d5bae10403
Add GitGutterDiffOrig command
...
Closes #827 .
2022-04-15 14:13:51 +01:00
Andy Stewart
384bf003f6
Allow configuration of floating window appearance
...
Closes #807 .
2022-02-02 09:23:45 +00:00
naohiro ono
549fb96d58
Add instructions on how to customize colours in preview window
2021-08-06 16:13:14 +01:00
Andy Stewart
0f98634b92
Add caveat to setting of Windows git executable
...
See #668 .
2021-06-08 16:29:34 +01:00
Andy Stewart
100bee7dab
Remove stale link
2021-04-22 14:55:01 +01:00
Andy Stewart
bf813bb990
Add some troubleshooting steps
2020-11-24 09:44:51 +00:00
Andy Stewart
a1f9f1f728
Suggest a command instead of a map for opening quickfix
...
See #676 , #749 .
2020-11-20 10:46:03 +00:00
Andy Stewart
15b19020b4
Document how to open quickfix list after :GitGutterQuickFix
...
See #676 , #749 .
2020-11-20 10:00:41 +00:00
obcat
987a33355e
Show message like "Hunk 4 of 11" after hunk jumping
2020-11-05 16:43:52 +00:00
Andy Stewart
25942fbf9a
Document sign removed above and below
...
Closes #723 .
2020-07-27 15:10:24 +01:00
Andy Stewart
76d1cf609d
Do not set background on existing GitGutter* highlights unless requested
...
If GitGutter* highlight groups already exist, they were declared
deliberately (either by the colorscheme maintainer or the user). So do
not adjust them.
However if you would like to make the signs' backgrounds match the sign
column, you can do this:
let g:gitgutter_set_sign_backgrounds = 1
2020-04-30 19:43:02 +01:00
Andy Stewart
0da302c28a
Do not adjust SignColumn highlight
...
This was introduced in 07d7c9d4 because many colorschemes at the time
had ugly sign columns, and people kept asking how to deal with it.
These days there are many more plugins which use the sign column and
consequently more colorschemes pay attention to the SignColumn highlight
group.
Therefore it no longer makes sense for vim-gitgutter to adjust the
sign column's appearance.
To restore the previous behaviour, add this to your vimrc:
highlight! link SignColumn LineNr
See #696 .
2020-04-30 19:41:09 +01:00
Andy Stewart
ea14301cb4
Default to not limiting number of signs on newer Vims
...
The limit on the maximum number of signs was introduced when Vim's sign
drawing code was much slower than it is now.
See #681 .
2020-04-27 10:09:22 +01:00
Andy Stewart
70855aa93d
Enable turning off limit on maximum number of signs
...
Setting the variable to a known value (-1) is neater than an arbitrary
high number.
See #681 .
2020-04-27 10:02:03 +01:00
Andy Stewart
8a380e2f90
Ensure good diff syntax highlighting in preview
...
Specifically, make it match the signs' foreground colours; and clear the
backgrounds so the GitGutter{Add,Delete}IntraLine highlights' "reverse"
colours work properly.
2020-04-25 13:33:05 +01:00
Andy Stewart
8db2fc5da0
Set correct background on existing GitGutter* highlight groups
...
Previously if the user or the colourscheme had already defined
GitGutter* highlight groups, the plugin would leave their backgrounds
alone. This pushed the responsibility for figuring out and specifying
the correct backgrounds onto the user or colourscheme maintainer.
With this change the plugin now sets the correct background on existing
GitGutter* highlight groups.
Also, the documentation was simplified so it is clearer how to set your
own colours for the signs.
2020-04-25 11:17:34 +01:00
Andy Stewart
6b46098b2a
Remove unnecessary word
2020-04-24 09:22:06 +01:00
Andy Stewart
f118eb8077
Add note about compatibility
2020-04-24 09:21:48 +01:00
Andy Stewart
9e99a78271
Document the reason for the name gitgutter
2020-04-23 09:02:22 +01:00
Andy Stewart
3599736179
Fire GitGutterStage User event after staging
...
Closes #698 .
2020-04-23 08:59:26 +01:00
Andy Stewart
0e509fb0ac
Set diff base when viewing file versions with Fugitive
...
When you look at previous versions of a file, e.g. with Fugitive's
:0Gclog, gitgutter will set the diff base to the current version's
parent so that diff markers appear as expected.
Thannks to @rcreasi for the idea and initial implementation.
2020-03-12 10:38:58 +00:00
Andy Stewart
9add23a492
Document how to get diff stats in statusline
...
Closes #674 .
2020-01-15 11:50:47 +00:00
Andy Stewart
0946c53cfc
Clarify line number highlights require sign column.
...
See #669 .
2020-01-06 14:13:29 +00:00
Andy Stewart
91bd300021
Document 'updatetime' also controlling writing of swap files.
...
See #672 .
2020-01-06 11:52:07 +00:00
Andy Stewart
c31581c25b
More idiomatic line number navigation
2019-11-25 12:14:38 +00:00
Andy Stewart
bced2175f8
Add snippet for cycling hunks in current buffer.
...
Thanks @andys8 :)
Closes #667 .
2019-11-25 12:12:49 +00:00
Richard Robbins
fa8d0feb41
Update README.md with g:gitgutter_use_location_list info
2019-11-22 13:25:40 +02:00
Morgan Terry
af20a9fcff
Fix example mappings
2019-10-24 13:11:11 +03:00
Andy Stewart
1725c13add
Simplify installation instructions
2019-10-01 10:39:23 +01:00
Andy Stewart
236ced01c7
Clarify that plugin compares buffer not working tree
2019-09-30 13:26:40 +01:00
Andy Stewart
c656fc94d2
Add FAQ on diff highlight groups
2019-09-30 13:26:17 +01:00
Andy Stewart
44bb472bac
Add changed indicator for closed folds
...
Closes #655 .
2019-09-27 16:50:14 +01:00
Andy Stewart
d2796a277e
Use relative path for screenshot
2019-09-24 11:44:01 +01:00
Andy Stewart
6660aca947
Update screenshot to include hunk preview
2019-09-24 11:37:14 +01:00
Andy Stewart
fdecc23368
Hunk previews highlight intra-line changes.
...
Closes #577 .
2019-09-18 11:55:01 +01:00
Andy Stewart
b71ab64dc1
Add comment about quickfix list
2019-09-05 18:36:55 +01:00
Andy Stewart
c5d2519cd5
Update example maps to use g-based maps
2019-09-05 18:36:39 +01:00
Andy Stewart
0469b8435a
Deprecate <Plug>... maps in favour of <Plug>(...)
2019-09-04 08:56:36 +01:00
Andy Stewart
88d396f1b4
Add :GitGutterQuickFix command.
...
It loads all hunks into the quickfix list.
Closes #617 .
2019-08-28 11:59:19 +01:00
Andy Stewart
8bafd08ef4
Support diffs relative to the working tree.
...
Closes #558 .
2019-08-28 09:22:06 +01:00
Andy Stewart
98ce886999
Mention staging partial hunks in top of readme.
2019-08-27 16:57:13 +01:00
Andy Stewart
67c8cca890
Support Vim's popup windows for hunk previews.
...
Note this prevents staging partial hunks via the previw window.
2019-08-27 16:56:30 +01:00
Andy Stewart
f0f56b9569
Use floating windows for hunk previews on Neovim.
2019-08-27 16:02:51 +01:00
Andy Stewart
77fb3fd81e
Enable :w in preview window to stage the hunk.
2019-08-21 10:27:23 +01:00