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:
Ilya Radchenko
2015-11-07 10:05:43 -05:00
parent b18e23cdfa
commit bcb601acd2

View File

@@ -58,39 +58,39 @@ call gitgutter#highlight#define_signs()
" Primary functions {{{ " Primary functions {{{
command GitGutterAll call gitgutter#all() command -bar GitGutterAll call gitgutter#all()
command GitGutter call gitgutter#process_buffer(bufnr(''), 0) command -bar GitGutter call gitgutter#process_buffer(bufnr(''), 0)
command GitGutterDisable call gitgutter#disable() command -bar GitGutterDisable call gitgutter#disable()
command GitGutterEnable call gitgutter#enable() command -bar GitGutterEnable call gitgutter#enable()
command GitGutterToggle call gitgutter#toggle() command -bar GitGutterToggle call gitgutter#toggle()
" }}} " }}}
" Line highlights {{{ " Line highlights {{{
command GitGutterLineHighlightsDisable call gitgutter#line_highlights_disable() command -bar GitGutterLineHighlightsDisable call gitgutter#line_highlights_disable()
command GitGutterLineHighlightsEnable call gitgutter#line_highlights_enable() command -bar GitGutterLineHighlightsEnable call gitgutter#line_highlights_enable()
command GitGutterLineHighlightsToggle call gitgutter#line_highlights_toggle() command -bar GitGutterLineHighlightsToggle call gitgutter#line_highlights_toggle()
" }}} " }}}
" Signs {{{ " Signs {{{
command GitGutterSignsEnable call gitgutter#signs_enable() command -bar GitGutterSignsEnable call gitgutter#signs_enable()
command GitGutterSignsDisable call gitgutter#signs_disable() command -bar GitGutterSignsDisable call gitgutter#signs_disable()
command GitGutterSignsToggle call gitgutter#signs_toggle() command -bar GitGutterSignsToggle call gitgutter#signs_toggle()
" }}} " }}}
" Hunks {{{ " Hunks {{{
command -count=1 GitGutterNextHunk call gitgutter#hunk#next_hunk(<count>) command -bar -count=1 GitGutterNextHunk call gitgutter#hunk#next_hunk(<count>)
command -count=1 GitGutterPrevHunk call gitgutter#hunk#prev_hunk(<count>) command -bar -count=1 GitGutterPrevHunk call gitgutter#hunk#prev_hunk(<count>)
command GitGutterStageHunk call gitgutter#stage_hunk() command -bar GitGutterStageHunk call gitgutter#stage_hunk()
command GitGutterRevertHunk call gitgutter#revert_hunk() command -bar GitGutterRevertHunk call gitgutter#revert_hunk()
command GitGutterPreviewHunk call gitgutter#preview_hunk() command -bar GitGutterPreviewHunk call gitgutter#preview_hunk()
" Returns the git-diff hunks for the file or an empty list if there " Returns the git-diff hunks for the file or an empty list if there
" aren't any hunks. " aren't any hunks.
@@ -122,7 +122,7 @@ endfunction
" }}} " }}}
command GitGutterDebug call gitgutter#debug#debug() command -bar GitGutterDebug call gitgutter#debug#debug()
" Maps {{{ " Maps {{{