diff options
author | Nathan Henrie <n8henrie@users.noreply.github.com> | 2019-03-05 02:09:29 -0700 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-03-05 09:09:29 +0000 |
commit | e5746d9a83a351144b4defb91f65cae7917766b5 (patch) | |
tree | d40073ebc91f059fc74beee36ed39ae1e2abeedb /ale_linters/rust | |
parent | c4328f2a31a8acac96ca8d7615231812bad700bf (diff) | |
download | ale-e5746d9a83a351144b4defb91f65cae7917766b5.zip |
Add lsp_config support for rls (#2332)
* Add lsp_config for rls
* Add working config example and test
Diffstat (limited to 'ale_linters/rust')
-rw-r--r-- | ale_linters/rust/rls.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/rust/rls.vim b/ale_linters/rust/rls.vim index cf34b43c..0e5c326c 100644 --- a/ale_linters/rust/rls.vim +++ b/ale_linters/rust/rls.vim @@ -3,6 +3,7 @@ call ale#Set('rust_rls_executable', 'rls') call ale#Set('rust_rls_toolchain', 'nightly') +call ale#Set('rust_rls_config', {}) function! ale_linters#rust#rls#GetCommand(buffer) abort let l:toolchain = ale#Var(a:buffer, 'rust_rls_toolchain') @@ -19,6 +20,7 @@ endfunction call ale#linter#Define('rust', { \ 'name': 'rls', \ 'lsp': 'stdio', +\ 'lsp_config': {b -> ale#Var(b, 'rust_rls_config')}, \ 'executable': {b -> ale#Var(b, 'rust_rls_executable')}, \ 'command': function('ale_linters#rust#rls#GetCommand'), \ 'project_root': function('ale_linters#rust#rls#GetProjectRoot'), |