From 1084152a117e28ed846f19e079f502ec686b6826 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 24 Jul 2023 00:35:54 +0000 Subject: ale-rust: add an example for `rust-analyzer` configuration (#4559) Closes: #4557 --- doc/ale-rust.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt index 36d69b5e..48f558e8 100644 --- a/doc/ale-rust.txt +++ b/doc/ale-rust.txt @@ -60,8 +60,20 @@ g:ale_rust_analyzer_config *g:ale_rust_analyzer_config* Type: |Dictionary| Default: `{}` - Dictionary with configuration settings for rust-analyzer. + Dictionary with configuration settings for rust-analyzer. Keys of the + dictionary are components of configuration keys. For example: +> + let g:ale_rust_analyzer_config = { + \ 'server': { + \ 'extraEnv': { 'RUSTUP_TOOLCHAIN': 'stable' }, + \ } + \} +< + corresponds to `rust-analyzer.server.extraEnv = { 'RUSTUP_TOOLCHAIN': 'stable' }` + + For available configuration parameters, see the `rust-analyzer` manual: + https://rust-analyzer.github.io/manual.html#configuration =============================================================================== cargo *ale-rust-cargo* -- cgit v1.2.3