mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Allow GitGutter* commands to be followed by other commands
See the related discussion here: https://github.com/scrooloose/syntastic/issues/1593
This commit is contained in:
@@ -58,39 +58,39 @@ call gitgutter#highlight#define_signs()
|
||||
|
||||
" Primary functions {{{
|
||||
|
||||
command GitGutterAll call gitgutter#all()
|
||||
command GitGutter call gitgutter#process_buffer(bufnr(''), 0)
|
||||
command -bar GitGutterAll call gitgutter#all()
|
||||
command -bar GitGutter call gitgutter#process_buffer(bufnr(''), 0)
|
||||
|
||||
command GitGutterDisable call gitgutter#disable()
|
||||
command GitGutterEnable call gitgutter#enable()
|
||||
command GitGutterToggle call gitgutter#toggle()
|
||||
command -bar GitGutterDisable call gitgutter#disable()
|
||||
command -bar GitGutterEnable call gitgutter#enable()
|
||||
command -bar GitGutterToggle call gitgutter#toggle()
|
||||
|
||||
" }}}
|
||||
|
||||
" Line highlights {{{
|
||||
|
||||
command GitGutterLineHighlightsDisable call gitgutter#line_highlights_disable()
|
||||
command GitGutterLineHighlightsEnable call gitgutter#line_highlights_enable()
|
||||
command GitGutterLineHighlightsToggle call gitgutter#line_highlights_toggle()
|
||||
command -bar GitGutterLineHighlightsDisable call gitgutter#line_highlights_disable()
|
||||
command -bar GitGutterLineHighlightsEnable call gitgutter#line_highlights_enable()
|
||||
command -bar GitGutterLineHighlightsToggle call gitgutter#line_highlights_toggle()
|
||||
|
||||
" }}}
|
||||
|
||||
" Signs {{{
|
||||
|
||||
command GitGutterSignsEnable call gitgutter#signs_enable()
|
||||
command GitGutterSignsDisable call gitgutter#signs_disable()
|
||||
command GitGutterSignsToggle call gitgutter#signs_toggle()
|
||||
command -bar GitGutterSignsEnable call gitgutter#signs_enable()
|
||||
command -bar GitGutterSignsDisable call gitgutter#signs_disable()
|
||||
command -bar GitGutterSignsToggle call gitgutter#signs_toggle()
|
||||
|
||||
" }}}
|
||||
|
||||
" Hunks {{{
|
||||
|
||||
command -count=1 GitGutterNextHunk call gitgutter#hunk#next_hunk(<count>)
|
||||
command -count=1 GitGutterPrevHunk call gitgutter#hunk#prev_hunk(<count>)
|
||||
command -bar -count=1 GitGutterNextHunk call gitgutter#hunk#next_hunk(<count>)
|
||||
command -bar -count=1 GitGutterPrevHunk call gitgutter#hunk#prev_hunk(<count>)
|
||||
|
||||
command GitGutterStageHunk call gitgutter#stage_hunk()
|
||||
command GitGutterRevertHunk call gitgutter#revert_hunk()
|
||||
command GitGutterPreviewHunk call gitgutter#preview_hunk()
|
||||
command -bar GitGutterStageHunk call gitgutter#stage_hunk()
|
||||
command -bar GitGutterRevertHunk call gitgutter#revert_hunk()
|
||||
command -bar GitGutterPreviewHunk call gitgutter#preview_hunk()
|
||||
|
||||
" Returns the git-diff hunks for the file or an empty list if there
|
||||
" aren't any hunks.
|
||||
@@ -122,7 +122,7 @@ endfunction
|
||||
|
||||
" }}}
|
||||
|
||||
command GitGutterDebug call gitgutter#debug#debug()
|
||||
command -bar GitGutterDebug call gitgutter#debug#debug()
|
||||
|
||||
" Maps {{{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user