From c07b3b9bfcc00fb8b6dd8b2e9627257df4c8ed4f Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 26 Nov 2017 18:47:30 +0000 Subject: Fix #1166 - Add an option for the rls toolchain --- ale_linters/rust/rls.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ale_linters/rust') 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 -- cgit v1.2.3