nvim: plugin: statusline: Drop hunk summary in status line

Hunk summary in status line has not been useful.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-19 15:33:17 +05:30
parent 7875f6d8ab
commit c1f6813a9d

View file

@ -19,16 +19,9 @@ function! GetCursorPosition()
\ : ''
endfunction
" Taken from gitgutter README
function! GitHunkStatus()
let [a,m,r] = GitGutterGetHunkSummary()
return printf('+%d ~%d -%d', a, m, r)
endfunction
function! ActiveStatus() abort
let statusline=""
let statusline.="%1*\ %{winnr()}\ "
let statusline.="%4*\ %{GitHunkStatus()}"
let statusline.="%2*\ %Y\ "
let statusline.="%3*%<%f"
let statusline.="%="
@ -39,7 +32,6 @@ endfunction
function! PassiveStatus() abort
let statusline=""
let statusline.="%5*\ %{winnr()}\ "
let statusline.="%8*\ %{GitHunkStatus()}"
let statusline.="%6*\ %Y\ "
let statusline.="%7*%<%f"
let statusline.="%="