vimrc: Wrap FugitiveHead() output

This commit is contained in:
Rob Watson 2021-03-19 08:11:11 +01:00
parent 5e97258b64
commit 4d7e9a21e3
1 changed files with 5 additions and 1 deletions

6
vimrc
View File

@ -189,6 +189,10 @@ nmap <leader>gg :Rg<cr>
" 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',