diff options
author | Eddie Lebow <elebow@users.noreply.github.com> | 2018-09-15 21:38:26 -0400 |
---|---|---|
committer | Eddie Lebow <elebow@users.noreply.github.com> | 2018-09-15 22:10:46 -0400 |
commit | dbe93529352880068cb738abb93a1bc009bf73ed (patch) | |
tree | 2b2d1ebe0a08cc2b86af3b12a0575b031645c306 /ale_linters/python/pyflakes.vim | |
parent | 56e67c5811024ef25e1d8792193c725241bdc04b (diff) | |
download | ale-dbe93529352880068cb738abb93a1bc009bf73ed.zip |
Add `python_auto_pipenv` config var for all python linters.
This allows a user to set one variable instead of eight.
Diffstat (limited to 'ale_linters/python/pyflakes.vim')
-rw-r--r-- | ale_linters/python/pyflakes.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/python/pyflakes.vim b/ale_linters/python/pyflakes.vim index 33410562..091408d5 100644 --- a/ale_linters/python/pyflakes.vim +++ b/ale_linters/python/pyflakes.vim @@ -6,7 +6,8 @@ call ale#Set('python_pyflakes_use_global', get(g:, 'ale_use_global_executables', call ale#Set('python_pyflakes_auto_pipenv', 0) function! ale_linters#python#pyflakes#GetExecutable(buffer) abort - if ale#Var(a:buffer, 'python_pyflakes_auto_pipenv') && ale#python#PipenvPresent(a:buffer) + if (ale#Var(a:buffer, 'python_auto_pipenv') || ale#Var(a:buffer, 'python_pyflakes_auto_pipenv')) + \ && ale#python#PipenvPresent(a:buffer) return 'pipenv' endif |