summaryrefslogtreecommitdiff
path: root/ale_linters/python/pyls.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/python/pyls.vim')
-rw-r--r--ale_linters/python/pyls.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/ale_linters/python/pyls.vim b/ale_linters/python/pyls.vim
index 883b38f5..010cb31f 100644
--- a/ale_linters/python/pyls.vim
+++ b/ale_linters/python/pyls.vim
@@ -11,7 +11,11 @@ endfunction
function! ale_linters#python#pyls#GetCommand(buffer) abort
let l:executable = ale_linters#python#pyls#GetExecutable(a:buffer)
- return ale#Escape(l:executable)
+ let l:exec_args = l:executable =~? 'pipenv$'
+ \ ? ' run pyls'
+ \ : ''
+
+ return ale#Escape(l:executable) . l:exec_args
endfunction
call ale#linter#Define('python', {