From 4d7e9a21e326bb167296c6f8402ef28698c7f75e Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 19 Mar 2021 08:11:11 +0100 Subject: [PATCH] vimrc: Wrap FugitiveHead() output --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index dc46eed..98fd3ec 100644 --- a/vimrc +++ b/vimrc @@ -189,6 +189,10 @@ nmap gg :Rg " Lightline configuration: packadd! lightline.vim +function! GitHead() + return '[' . FugitiveHead() . ']' +endfunction + set laststatus=2 let g:lightline = { \ 'colorscheme': 'seoul256', @@ -200,7 +204,7 @@ let g:lightline = { \ }, \ 'component_function': { \ 'gobuild': 'go#statusline#Show', - \ 'gitbranch': 'FugitiveHead', + \ 'gitbranch': 'GitHead', \ }, \ 'mode_map': { \ 'n' : 'N',