Created
April 5, 2019 11:04
-
-
Save airblade/c05b8104a1ec80ea59a6b9331b9fd23c to your computer and use it in GitHub Desktop.
Using vim-gitgutter to achieve niklaas/lightline-gitdiff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:gitgutter_signs=0 | |
function! GitStatus() | |
return join(filter(map(['A','M','D'], {i,v -> v.': '.GitGutterGetHunkSummary()[i]}), 'v:val[-1:]'), ' ') | |
endfunction | |
set statusline+=%{GitStatus()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment