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:
parent
7875f6d8ab
commit
c1f6813a9d
1 changed files with 0 additions and 8 deletions
|
@ -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.="%="
|
||||
|
|
Loading…
Reference in a new issue