summaryrefslogtreecommitdiff
path: root/ale_linters/rust/rls.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-26 18:47:30 +0000
committerw0rp <devw0rp@gmail.com>2017-11-26 18:47:30 +0000
commitc07b3b9bfcc00fb8b6dd8b2e9627257df4c8ed4f (patch)
tree95c5fba379b66df2634251d6e60cf5ba873286ef /ale_linters/rust/rls.vim
parentae7cd2c0907573c9c4996296b642e547fd1ee04f (diff)
downloadale-c07b3b9bfcc00fb8b6dd8b2e9627257df4c8ed4f.zip
Fix #1166 - Add an option for the rls toolchain
Diffstat (limited to 'ale_linters/rust/rls.vim')
-rw-r--r--ale_linters/rust/rls.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/ale_linters/rust/rls.vim b/ale_linters/rust/rls.vim
index c49d2682..832fe3e2 100644
--- a/ale_linters/rust/rls.vim
+++ b/ale_linters/rust/rls.vim
@@ -2,6 +2,7 @@
" Description: A language server for Rust
call ale#Set('rust_rls_executable', 'rls')
+call ale#Set('rust_rls_toolchain', 'nightly')
function! ale_linters#rust#rls#GetExecutable(buffer) abort
return ale#Var(a:buffer, 'rust_rls_executable')
@@ -9,8 +10,10 @@ endfunction
function! ale_linters#rust#rls#GetCommand(buffer) abort
let l:executable = ale_linters#rust#rls#GetExecutable(a:buffer)
+ let l:toolchain = ale#Var(a:buffer, 'rust_rls_toolchain')
- return ale#Escape(l:executable) . ' +nightly'
+ return ale#Escape(l:executable)
+ \ . ' +' . ale#Escape(l:toolchain)
endfunction
function! ale_linters#rust#rls#GetLanguage(buffer) abort