mirror of
https://github.com/dense-analysis/ale.git
synced 2026-07-30 20:02:51 +08:00
Add ale_python_pyright_options variable (#5150)
Also replaces link to lsp config doc from its source code to the published rendered page version. Co-authored-by: cos <cos>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
call ale#Set('python_pyright_use_global', get(g:, 'ale_use_global_executables', 0))
|
||||
call ale#Set('python_pyright_executable', 'pyright-langserver')
|
||||
call ale#Set('python_pyright_options', '--stdio')
|
||||
call ale#Set('python_pyright_config', {})
|
||||
call ale#Set('python_pyright_auto_pipenv', 0)
|
||||
call ale#Set('python_pyright_auto_poetry', 0)
|
||||
@@ -79,7 +80,8 @@ function! ale_linters#python#pyright#GetCommand(buffer) abort
|
||||
let l:env_string = ale#python#AutoVirtualenvEnvString(a:buffer)
|
||||
endif
|
||||
|
||||
return l:env_string . ale#Escape(l:executable) . l:exec_args . ' --stdio'
|
||||
return l:env_string . ale#Escape(l:executable) . l:exec_args .
|
||||
\ ale#Pad(ale#Var(a:buffer, 'python_pyright_options'))
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('python', {
|
||||
|
||||
Reference in New Issue
Block a user