Add the powerline git char  to status line
dblume

dblume commited on 2024-04-13 13:54:53
Showing 1 changed files, with 1 additions and 1 deletions.


I'm ambivalent about this, don't like needing nerdfonts or
powerline fonts. I've removed their requirement once before.
But I'll ease back in with just this one character.
... ...
@@ -80,7 +80,7 @@ set history=500
80 80
 
81 81
 function! GitBranch()
82 82
   let l:branchname = system("git -C " . expand('%:p:h') . " rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
83
-  return strlen(l:branchname) > 0 ? '  │ '.l:branchname : ''
83
+  return strlen(l:branchname) > 0 ? '  │  '.l:branchname : ''
84 84
 endfunction
85 85
 
86 86
 function! EncodingAndFormat()
87 87