mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
Merge remote-tracking branch 'aschrab/no_python_warning' into develop
This commit is contained in:
commit
fabc45f1dc
@ -455,6 +455,10 @@ Vim configuration can be overridden using the following options:
|
||||
directory which will be searched for configuration. When this option is
|
||||
present, none of the other locations are searched.
|
||||
|
||||
``g:powerline_no_python_error``
|
||||
If this variable is set to a true value it will prevent Powerline from reporting
|
||||
an error when loaded in a copy of vim without the necessary Python support.
|
||||
|
||||
Powerline script overrides
|
||||
--------------------------
|
||||
|
||||
|
@ -10,8 +10,10 @@ function! s:CriticalError(message)
|
||||
endfunction
|
||||
|
||||
if ! has('python') && ! has('python3')
|
||||
call s:CriticalError('You need vim compiled with Python 2.6+ or 3.2+ support
|
||||
\ for Powerline to work. Please consult the documentation for more details.')
|
||||
if !exists('g:powerline_no_python_error')
|
||||
call s:CriticalError('You need vim compiled with Python 2.6+ or 3.2+ support
|
||||
\ for Powerline to work. Please consult the documentation for more details.')
|
||||
endif
|
||||
finish
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user