From a2ae5af2bb645ce2db80bc7cbcdff0fe7d1a9317 Mon Sep 17 00:00:00 2001 From: Knyffen Date: Sun, 12 Nov 2023 18:01:06 +0100 Subject: [PATCH] Fix fugitive in lightline --- init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index 5e9644d..84933c5 100644 --- a/init.vim +++ b/init.vim @@ -323,13 +323,13 @@ tnoremap \ 'component': { \ 'lineinfo': ' %3l:%-2v', \ 'readonly': '%{&readonly?"":""}', - \ 'gitbranch': '%{exists("*fugitive#head") && fugitive#head()!=""?"".fugitive#head():""}', + \ 'gitbranch': '%{exists("*FugitiveHead") && FugitiveHead()!=""?"".FugitiveHead():""}', \ 'lastmodified': '%{(localtime()-getftime(expand("%:p")) < 60)?"".localtime()-getftime(expand("%:p")):""}', \ }, \ 'component_visible_condition': { \ 'readonly': '(&filetype!="help"&& &readonly)', \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))', - \ 'gitbranch': '(exists("*fugitive#head") && fugitive#head()!="")', + \ 'gitbranch': '(exists("*FugitiveHead") && FugitiveHead()!="")', \ 'lastmodified': '((localtime()-getftime(expand("%:p"))) < 60)', \ }, \ 'separator': {