issue 3033 (#3620)

* Add ale_python_pyls_options

* Add extra explanatory detail

* Fix alignment

* Fix test
This commit is contained in:
Nathan Henrie
2021-03-17 16:55:50 -07:00
committed by GitHub
parent dc40ece3c3
commit ed7f4dee53
3 changed files with 26 additions and 1 deletions

View File

@@ -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', {