summaryrefslogtreecommitdiff
path: root/ale_linters/python/pyls.vim
diff options
context:
space:
mode:
authorNathan Henrie <n8henrie@users.noreply.github.com>2021-03-17 16:55:50 -0700
committerGitHub <noreply@github.com>2021-03-18 08:55:50 +0900
commited7f4dee532718bd299c42738a3631824b37b5d0 (patch)
tree64504b895cfb191ea881bb261057b9eac5ba53f7 /ale_linters/python/pyls.vim
parentdc40ece3c389804df6d9423e0d52c8da2355ea17 (diff)
downloadale-ed7f4dee532718bd299c42738a3631824b37b5d0.zip
issue 3033 (#3620)
* Add ale_python_pyls_options * Add extra explanatory detail * Fix alignment * Fix test
Diffstat (limited to 'ale_linters/python/pyls.vim')
-rw-r--r--ale_linters/python/pyls.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/python/pyls.vim b/ale_linters/python/pyls.vim
index c7f91430..10304b2c 100644
--- a/ale_linters/python/pyls.vim
+++ b/ale_linters/python/pyls.vim
@@ -2,6 +2,7 @@
" Description: A language server for Python
call ale#Set('python_pyls_executable', 'pyls')
+call ale#Set('python_pyls_options', '')
call ale#Set('python_pyls_use_global', get(g:, 'ale_use_global_executables', 0))
call ale#Set('python_pyls_auto_pipenv', 0)
call ale#Set('python_pyls_config', {})
@@ -22,7 +23,7 @@ function! ale_linters#python#pyls#GetCommand(buffer) abort
\ ? ' run pyls'
\ : ''
- return ale#Escape(l:executable) . l:exec_args
+ return ale#Escape(l:executable) . l:exec_args . ale#Pad(ale#Var(a:buffer, 'python_pyls_options'))
endfunction
call ale#linter#Define('python', {