diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 50c1c161..0e406547 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -290,7 +290,7 @@ function! airline#extensions#load() elseif (get(g:, 'airline#extensions#virtualenv#enabled', 1) && (exists(':VirtualEnvList'))) call airline#extensions#virtualenv#init(s:ext) call add(s:loaded_ext, 'virtualenv') - elseif (isdirectory($VIRTUAL_ENV)) + elseif (get(g:, 'airline#extensions#poetv#enabled', 1) && (isdirectory($VIRTUAL_ENV))) call airline#extensions#poetv#init(s:ext) call add(s:loaded_ext, 'poetv') endif