vimrc: Wrap FugitiveHead() output
This commit is contained in:
parent
5e97258b64
commit
4d7e9a21e3
6
vimrc
6
vimrc
|
@ -189,6 +189,10 @@ nmap <leader>gg :Rg<cr>
|
||||||
|
|
||||||
" Lightline configuration:
|
" Lightline configuration:
|
||||||
packadd! lightline.vim
|
packadd! lightline.vim
|
||||||
|
function! GitHead()
|
||||||
|
return '[' . FugitiveHead() . ']'
|
||||||
|
endfunction
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
\ 'colorscheme': 'seoul256',
|
\ 'colorscheme': 'seoul256',
|
||||||
|
@ -200,7 +204,7 @@ let g:lightline = {
|
||||||
\ },
|
\ },
|
||||||
\ 'component_function': {
|
\ 'component_function': {
|
||||||
\ 'gobuild': 'go#statusline#Show',
|
\ 'gobuild': 'go#statusline#Show',
|
||||||
\ 'gitbranch': 'FugitiveHead',
|
\ 'gitbranch': 'GitHead',
|
||||||
\ },
|
\ },
|
||||||
\ 'mode_map': {
|
\ 'mode_map': {
|
||||||
\ 'n' : 'N',
|
\ 'n' : 'N',
|
||||||
|
|
Loading…
Reference in New Issue