diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-11-25 06:00:37 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-11-25 06:00:37 +0100 |
commit | 274341531f7dd86464b77524f002abbf5d8326d4 (patch) | |
tree | 818b327b32f85543aec2176941831213e421f58e | |
parent | fce95620d186fe7df4ee423d21ff02fb53e1caaa (diff) | |
download | dotfiles-274341531f7dd86464b77524f002abbf5d8326d4.tar.xz |
nvim: init: fix test if fugitive is loaded
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | nvim/init.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index efa2066..09a22f5 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -104,9 +104,9 @@ set statusline+=%#identifier# set statusline+=%r set statusline+=%* -"if neobundle#is_sourced('vim-fugitive') +if exists('g:loaded_fugitive') set statusline+=%{fugitive#statusline()} -"endif +endif " Show a warning if file format isn’t unix set statusline+=%#warningmsg# |