Add python_auto_pipenv config var for all python linters.

This allows a user to set one variable instead of eight.
This commit is contained in:
Eddie Lebow
2018-09-15 21:38:26 -04:00
parent 56e67c5811
commit dbe9352935
10 changed files with 26 additions and 8 deletions

View File

@@ -12,7 +12,8 @@ let g:ale_python_prospector_options =
let g:ale_python_prospector_use_global = get(g:, 'ale_python_prospector_use_global', get(g:, 'ale_use_global_executables', 0))
function! ale_linters#python#prospector#GetExecutable(buffer) abort
if ale#Var(a:buffer, 'python_prospector_auto_pipenv') && ale#python#PipenvPresent(a:buffer)
if (ale#Var(a:buffer, 'python_auto_pipenv') || ale#Var(a:buffer, 'python_prospector_auto_pipenv'))
\ && ale#python#PipenvPresent(a:buffer)
return 'pipenv'
endif