mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 10:13:42 +08:00
hunks: Display the hunks summary only if Git Gutter is enabled
This commit is contained in:
parent
e2a758e309
commit
bbe077037e
|
@ -5,6 +5,9 @@ let s:non_zero_only = get(g:, 'airline#extensions#hunks#non_zero_only', 0)
|
|||
let s:hunk_symbols = get(g:, 'airline#extensions#hunks#hunk_symbols', ['+', '~', '-'])
|
||||
|
||||
function! airline#extensions#hunks#get_hunks()
|
||||
if get(g:, 'gitgutter_enabled', 0) == 0
|
||||
return ''
|
||||
endif
|
||||
let hunks = GitGutterGetHunkSummary()
|
||||
let string = ''
|
||||
for i in [0, 1, 2]
|
||||
|
|
Loading…
Reference in New Issue
Block a user