From bcb601acd2b0b6376cb6a1ca623414663f643306 Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Sat, 7 Nov 2015 10:05:43 -0500 Subject: [PATCH] Allow GitGutter* commands to be followed by other commands See the related discussion here: https://github.com/scrooloose/syntastic/issues/1593 --- plugin/gitgutter.vim | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 68ab186..e83aaac 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -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() -command -count=1 GitGutterPrevHunk call gitgutter#hunk#prev_hunk() +command -bar -count=1 GitGutterNextHunk call gitgutter#hunk#next_hunk() +command -bar -count=1 GitGutterPrevHunk call gitgutter#hunk#prev_hunk() -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 {{{