summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authoryut23 <yut23@gvljohnsons.com>2019-01-20 23:52:44 -0500
committeryut23 <yut23@gvljohnsons.com>2019-01-20 23:59:46 -0500
commitf2db164268378e6e7ddfa3adfb70ebb6eb47a5a5 (patch)
tree04f64dd599de040d021a01951fa11c37c243fbc6 /ale_linters
parentd1fc084b2d3af6dd9807a01a6ca7822af6c2a78f (diff)
downloadale-f2db164268378e6e7ddfa3adfb70ebb6eb47a5a5.zip
Add support for pyls configuration options
Resolves #1443. Heavily inspired by the analogous support added for elixir-ls.
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/python/pyls.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/python/pyls.vim b/ale_linters/python/pyls.vim
index 83fe8066..2c2ed94c 100644
--- a/ale_linters/python/pyls.vim
+++ b/ale_linters/python/pyls.vim
@@ -4,6 +4,7 @@
call ale#Set('python_pyls_executable', 'pyls')
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', {})
function! ale_linters#python#pyls#GetExecutable(buffer) abort
if (ale#Var(a:buffer, 'python_auto_pipenv') || ale#Var(a:buffer, 'python_pyls_auto_pipenv'))
@@ -31,4 +32,5 @@ call ale#linter#Define('python', {
\ 'command_callback': 'ale_linters#python#pyls#GetCommand',
\ 'project_root_callback': 'ale#python#FindProjectRoot',
\ 'completion_filter': 'ale#completion#python#CompletionItemFilter',
+\ 'lsp_config_callback': ale#VarFunc('python_pyls_config'),
\})