file type check converted to pattern match
so extension will be enabled for file types like python.django etc.
This commit is contained in:
parent
bc03ab5cbf
commit
2be030b7e8
@ -6,7 +6,7 @@ function! airline#extensions#virtualenv#init(ext)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#virtualenv#apply(...)
|
function! airline#extensions#virtualenv#apply(...)
|
||||||
if &filetype == "python"
|
if &filetype =~ "python"
|
||||||
call airline#extensions#append_to_section('x', ' '.g:airline_right_alt_sep.' %{virtualenv#statusline()}')
|
call airline#extensions#append_to_section('x', ' '.g:airline_right_alt_sep.' %{virtualenv#statusline()}')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user