aboutsummaryrefslogtreecommitdiffstats
path: root/nvim
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-11-25 06:00:37 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-11-25 06:00:37 +0100
commit274341531f7dd86464b77524f002abbf5d8326d4 (patch)
tree818b327b32f85543aec2176941831213e421f58e /nvim
parentfce95620d186fe7df4ee423d21ff02fb53e1caaa (diff)
downloaddotfiles-274341531f7dd86464b77524f002abbf5d8326d4.tar.xz
nvim: init: fix test if fugitive is loaded
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.vim4
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#