mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
Change public function names to match command names.
This commit is contained in:
@@ -334,41 +334,41 @@ function! GitGutter()
|
|||||||
endfunction
|
endfunction
|
||||||
command GitGutter call GitGutter()
|
command GitGutter call GitGutter()
|
||||||
|
|
||||||
function! DisableGitGutter()
|
function! GitGutterDisable()
|
||||||
let g:gitgutter_enabled = 0
|
let g:gitgutter_enabled = 0
|
||||||
call s:clear_signs(s:current_file())
|
call s:clear_signs(s:current_file())
|
||||||
endfunction
|
endfunction
|
||||||
command GitGutterDisable call DisableGitGutter()
|
command GitGutterDisable call GitGutterDisable()
|
||||||
|
|
||||||
function! EnableGitGutter()
|
function! GitGutterEnable()
|
||||||
let g:gitgutter_enabled = 1
|
let g:gitgutter_enabled = 1
|
||||||
call GitGutter()
|
call GitGutter()
|
||||||
endfunction
|
endfunction
|
||||||
command GitGutterEnable call EnableGitGutter()
|
command GitGutterEnable call GitGutterEnable()
|
||||||
|
|
||||||
function! ToggleGitGutter()
|
function! GitGutterToggle()
|
||||||
if g:gitgutter_enabled
|
if g:gitgutter_enabled
|
||||||
call DisableGitGutter()
|
call GitGutterDisable()
|
||||||
else
|
else
|
||||||
call EnableGitGutter()
|
call GitGutterEnable()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
command GitGutterToggle call ToggleGitGutter()
|
command GitGutterToggle call GitGutterToggle()
|
||||||
|
|
||||||
function! DisableGitGutterLineHighlights()
|
function! GitGutterLineHighlightsDisable()
|
||||||
call s:update_line_highlights(0)
|
call s:update_line_highlights(0)
|
||||||
endfunction
|
endfunction
|
||||||
command GitGutterLineHighlightsDisable call DisableGitGutterLineHighlights()
|
command GitGutterLineHighlightsDisable call GitGutterLineHighlightsDisable()
|
||||||
|
|
||||||
function! EnableGitGutterLineHighlights()
|
function! GitGutterLineHighlightsEnable()
|
||||||
call s:update_line_highlights(1)
|
call s:update_line_highlights(1)
|
||||||
endfunction
|
endfunction
|
||||||
command GitGutterLineHighlightsEnable call EnableGitGutterLineHighlights()
|
command GitGutterLineHighlightsEnable call GitGutterLineHighlightsEnable()
|
||||||
|
|
||||||
function! ToggleGitGutterLineHighlights()
|
function! GitGutterLineHighlightsToggle()
|
||||||
call s:update_line_highlights(s:highlight_lines ? 0 : 1)
|
call s:update_line_highlights(s:highlight_lines ? 0 : 1)
|
||||||
endfunction
|
endfunction
|
||||||
command GitGutterLineHighlightsToggle call ToggleGitGutterLineHighlights()
|
command GitGutterLineHighlightsToggle call GitGutterLineHighlightsToggle()
|
||||||
|
|
||||||
function! GitGutterNextHunk()
|
function! GitGutterNextHunk()
|
||||||
if s:is_active()
|
if s:is_active()
|
||||||
|
|||||||
Reference in New Issue
Block a user