Andy Stewart
a194e9da01
When git cannot be found only warn if plugin enabled
...
This enables the plugin to be loaded on systems without git, without
emitting any warnings.
See #702 .
2020-04-27 14:09:56 +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
1c53af9a0d
Listen to FugitiveChanged autocmd
...
Closes #666 .
2019-12-03 15:27:08 +00:00
Richard Robbins
d36686e6a5
Add g:gitgutter_use_location_list option
2019-11-22 13:25:40 +02:00
Andy Stewart
7be1f83092
Fix escaping in non-expression map warnings.
...
Closes #648 .
2019-09-05 09:24:01 +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
83eb5377be
Fix FileChangedShellPost handler on terminal vim.
...
It seems to be necessary to delay the update by 1 tick.
See #607 .
2019-08-28 09:09:15 +01:00
Andy Stewart
7e3b079e6a
Fix option setting logic for floating windows.
2019-08-28 09:00:48 +01:00
Andy Stewart
f0f56b9569
Use floating windows for hunk previews on Neovim.
2019-08-27 16:02:51 +01:00
Andy Stewart
cbaa22e38c
Use sign functions, groups, and priority, where available.
...
On Vims that support it, signs are placed in the "gitgutter" group with
a priority set by g:gitgutter_sign_priority.
Closes #544 .
Closes #576 .
Closes #627 .
2019-08-16 16:21:06 +01:00
Andy Stewart
afe94ede1b
Do not use a dummy sign to keep the sign column open.
...
This removes the g:gitgutter_sign_column_always option.
Vim 7.4.2201 introduced the |signcolumn| option to configure when the
signcolumn is visible, building in behaviour which the plugin provided
manually.
Although it would be good to maintain this feature for older Vims, the
complexity added by the code outweighs the benefit of backward
compatibility.
2019-08-16 12:06:28 +01:00
Andy Stewart
e608bff4a3
Update signs after a Fugitive :Gwrite.
...
See tpope/vim-fugitive#503.
Closes #502 .
2019-08-15 11:43:30 +01:00
Andy Stewart
bc1d28db46
Allow staging part of an additions-only hunk.
...
See #279 .
2019-08-12 17:19:05 +01:00
Andy Stewart
fef14f1d49
Ignore non-gitgutter signs by default on Neovim >= 0.4.0
...
See #627 .
2019-08-12 10:03:59 +01:00
Dan Aloni
9bf988bd1d
Add g:gitgutter_sign_allow_clobber to control clobbering.
...
I.e. how gitgutter handles non-gitgutter signs.
See #565 , #627 .
Co-authored-by: Andy Stewart <boss@airbladesoftware.com >
2019-08-10 07:29:15 +01:00
delphinus
fc4f9d2039
Add commands to control numhl highlights
2019-08-08 16:40:35 +01:00
delphinus
78876150ae
Add logic for sign with numhl
2019-08-08 16:40:35 +01:00
homestar
8985017094
Add g:gitgutter_preview_win_location option
2019-08-08 16:31:44 +01:00
Andy Stewart
c75c83df53
Ensure maps set on all buffers for vim -o/-O.
...
Fixes #634 .
2019-07-26 10:27:58 +01:00
Andy Stewart
07b60b584e
Update signs when file renamed via :saveas
...
Fixes #551 .
2019-06-04 12:37:59 +01:00
Andy Stewart
064a3d6b10
Move #init_buffer() into #process_buffer().
2019-05-29 14:36:53 +01:00
Andy Stewart
7eeea63e62
Remove debugging statement.
2019-03-11 11:29:59 +00:00
Daniel Hahler
3d313838db
Only handle FocusGained after FocusLost
2019-03-11 11:29:11 +00:00
Andy Stewart
5c8efd3625
Fix updating of signs when leaving nvim terminal buffer.
...
Closes #587 .
2019-03-04 08:52:54 +00:00
Andy Stewart
ac787afa02
Add GitGutterFold command.
...
Closes #286 , #571 .
2019-01-14 11:48:24 +00:00
Andy Stewart
8d7a71ddd6
Update signs when leaving Neovim terminal.
...
Closes #570 .
2019-01-08 16:22:36 +00:00
Andy Stewart
2dce8e032b
Add commands to enable/disable/toggle GitGutter per buffer.
2019-01-08 12:47:10 +00:00
Andy Stewart
6f8acdcea1
Whitespace.
2018-10-18 09:48:57 +01:00
Andy Stewart
89c34f74cb
Display unambiguous sign when hunks overlap.
...
See #556 .
2018-10-18 09:45:55 +01:00
John Nguyen
50a7062909
Trigger refresh on VimResume event
...
VimResume is neovim event that is triggered when process is resumed to
foreground.
2018-08-14 22:02:33 -07:00
Andy Stewart
d2d2da11c5
Add g:gitgutter_git_args for args to git when running git-diff.
...
See #541 , #546 .
2018-07-31 14:28:36 +01:00
Andy Stewart
f536a35d92
Whitespace.
2018-07-06 10:13:10 +01:00
Andy Stewart
23824041cd
Force-update all buffers not just current after ShellCmdPost.
2018-07-06 10:12:30 +01:00
John Drouhard
b2be779ced
Clear the tick on hidden buffers when gitgutter#all(1) is called.
...
This should allow hidden buffers to recalculate their diff when loaded
after a FocusGained event fires.
2018-07-05 15:25:58 +03:00
Andy Stewart
c4301f9a10
Extract autocommand commands to a function for clarity.
2018-05-29 10:27:52 +01:00
Andy Stewart
f32eecc4fc
Ensure inactive tabs are force-updated after FocusGained.
...
On FocusGained the current tab is force-updated. If there are any other
tabs, we want to make sure they are also force-updated when the user
next switches to them. To do this we set a flag which is read and
cleared on TabEnter.
See #525 .
2018-05-29 10:22:03 +01:00
Andy Stewart
f167c3312b
Make maps buffer-local.
2018-05-02 16:02:43 +01:00
Andy Stewart
ad25925f1e
Add missing condition to determine whether running async.
...
See #505 .
2018-04-19 13:03:45 +01:00
Andy Stewart
5481318fc1
Prevent infinite loop when running non-async on Windows.
...
Closes #505 .
2018-04-11 09:56:43 +01:00
Plamen Kolev
983193456f
Ignore the arguments when testing the grep executable
2018-03-05 15:54:47 +00:00
Daniel Hahler
2fe748b48f
plugin/gitgutter.vim: use command! to allow for reloading
2018-03-01 10:06:56 +00:00
Andy Stewart
33c4c4a685
Enable update on FocusGained for gVim.
...
This was prevented to avoid an infinite loop on gVim (see #42 ).
However that was 5 years ago and this no longer seems to be a problem
(even running synchronously).
2018-02-28 16:56:26 +00:00
Andy Stewart
c39a5c240a
Add g:gitgutter_terminal_reports_focus to enable FocusGained workaround.
...
See #490 .
2018-02-28 15:09:36 +00:00
Andy Stewart
2a3ab77f10
Access tab variable directly instead of via {g,s}ettabbar().
...
Fewer function calls and better backward compatibility.
2018-02-27 11:37:38 +00:00
Andy Stewart
816fc98ff2
Swap order of if/else so it reads better.
2018-02-22 11:09:05 +00:00
Andy Stewart
61a5e0143e
Do not warn user when default grep cannot be found.
...
This restores the behaviour that was accidentally changed in 5bfe5b9 .
2018-02-22 11:06:34 +00:00
Andy Stewart
9325986457
Remove deprecated command GitGutterRevertHunk.
2018-02-21 12:23:02 +00:00
Andy Stewart
38a7789be9
Finish when pre-requisites not fulfilled.
2018-02-19 14:04:49 +00:00