summaryrefslogtreecommitdiff
path: root/ale_linters/rust/rls.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-27 22:52:11 +0100
committerw0rp <devw0rp@gmail.com>2018-04-27 22:52:11 +0100
commit6ab3fdc4d0566c09e9456c3bf1b7aa92747fd0aa (patch)
tree84362ca60df1e82d69e709e11688062d59c1ba79 /ale_linters/rust/rls.vim
parentd1d705cc8484d935c0c18857f152027491df355e (diff)
downloadale-6ab3fdc4d0566c09e9456c3bf1b7aa92747fd0aa.zip
Close #1521 - Allow the language to be set with simple strings for LSP linters
Diffstat (limited to 'ale_linters/rust/rls.vim')
-rw-r--r--ale_linters/rust/rls.vim6
1 files changed, 1 insertions, 5 deletions
diff --git a/ale_linters/rust/rls.vim b/ale_linters/rust/rls.vim
index 24316b04..d5160b14 100644
--- a/ale_linters/rust/rls.vim
+++ b/ale_linters/rust/rls.vim
@@ -19,10 +19,6 @@ function! ale_linters#rust#rls#GetCommand(buffer) abort
endif
endfunction
-function! ale_linters#rust#rls#GetLanguage(buffer) abort
- return 'rust'
-endfunction
-
function! ale_linters#rust#rls#GetProjectRoot(buffer) abort
let l:cargo_file = ale#path#FindNearestFile(a:buffer, 'Cargo.toml')
@@ -34,6 +30,6 @@ call ale#linter#Define('rust', {
\ 'lsp': 'stdio',
\ 'executable_callback': 'ale_linters#rust#rls#GetExecutable',
\ 'command_callback': 'ale_linters#rust#rls#GetCommand',
-\ 'language_callback': 'ale_linters#rust#rls#GetLanguage',
+\ 'language': 'rust',
\ 'project_root_callback': 'ale_linters#rust#rls#GetProjectRoot',
\})