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, 1 insertions, 5 deletions
diff --git a/ale_linters/python/pyls.vim b/ale_linters/python/pyls.vim
index 09f31ec6..883b38f5 100644
--- a/ale_linters/python/pyls.vim
+++ b/ale_linters/python/pyls.vim
@@ -14,16 +14,12 @@ function! ale_linters#python#pyls#GetCommand(buffer) abort
return ale#Escape(l:executable)
endfunction
-function! ale_linters#python#pyls#GetLanguage(buffer) abort
- return 'python'
-endfunction
-
call ale#linter#Define('python', {
\ 'name': 'pyls',
\ 'lsp': 'stdio',
\ 'executable_callback': 'ale_linters#python#pyls#GetExecutable',
\ 'command_callback': 'ale_linters#python#pyls#GetCommand',
-\ 'language_callback': 'ale_linters#python#pyls#GetLanguage',
+\ 'language': 'python',
\ 'project_root_callback': 'ale#python#FindProjectRoot',
\ 'completion_filter': 'ale#completion#python#CompletionItemFilter',
\})