From dbe93529352880068cb738abb93a1bc009bf73ed Mon Sep 17 00:00:00 2001 From: Eddie Lebow Date: Sat, 15 Sep 2018 21:38:26 -0400 Subject: Add `python_auto_pipenv` config var for all python linters. This allows a user to set one variable instead of eight. --- ale_linters/python/pylint.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ale_linters/python/pylint.vim') diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index 196f1b35..01c3cb37 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -8,7 +8,8 @@ call ale#Set('python_pylint_change_directory', 1) call ale#Set('python_pylint_auto_pipenv', 0) function! ale_linters#python#pylint#GetExecutable(buffer) abort - if ale#Var(a:buffer, 'python_pylint_auto_pipenv') && ale#python#PipenvPresent(a:buffer) + if (ale#Var(a:buffer, 'python_auto_pipenv') || ale#Var(a:buffer, 'python_pylint_auto_pipenv')) + \ && ale#python#PipenvPresent(a:buffer) return 'pipenv' endif -- cgit v1.2.3