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