From f5c289dce68f1592281b5d70539df91d4b3d2821 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 16 Oct 2019 11:34:06 -0400 Subject: Add support for rust-analyzer Fixes #2832 --- doc/ale-rust.txt | 24 ++++++++++++++++++++++++ doc/ale.txt | 1 + 2 files changed, 25 insertions(+) (limited to 'doc') diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt index 44a79b18..05390225 100644 --- a/doc/ale-rust.txt +++ b/doc/ale-rust.txt @@ -23,6 +23,11 @@ Integration Information over cargo. rls implements the Language Server Protocol for incremental compilation of Rust code, and can check Rust files while you type. `rls` requires Rust files to contained in Cargo projects. + 3. analyzer -- If you have rust-analyzer installed, you might prefer using + this linter over cargo and rls. rust-analyzer also implements the + Language Server Protocol for incremental compilation of Rust code, and is + the next iteration of rls. rust-analyzer, like rls, requires Rust files + to contained in Cargo projects. 4. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to consistently reformat your Rust code. @@ -190,6 +195,25 @@ g:ale_rust_rls_config *g:ale_rust_rls_config* \ } +=============================================================================== +analyzer *ale-rust-analyzer* + +g:ale_rust_analyzer_executable *g:ale_rust_analyzer_executable* + *b:ale_rust_analyzer_executable* + Type: |String| + Default: `'ra_lsp_server'` + + This variable can be modified to change the executable path for + `rust-analyzer`. + + +g:ale_rust_analyzer_config *g:ale_rust_analyzer_config* + *b:ale_rust_analyzer_config* + Type: |Dictionary| + Default: `{}` + + Dictionary with configuration settings for rust-analyzer. + =============================================================================== rustc *ale-rust-rustc* diff --git a/doc/ale.txt b/doc/ale.txt index 01b6181d..e8716de1 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -2411,6 +2411,7 @@ documented in additional help files. rust....................................|ale-rust-options| cargo.................................|ale-rust-cargo| rls...................................|ale-rust-rls| + rust-analyzer.........................|ale-rust-analyzer| rustc.................................|ale-rust-rustc| rustfmt...............................|ale-rust-rustfmt| sass....................................|ale-sass-options| -- cgit v1.2.3 From d74db90550f061b3609bb9fe9a04b936b1a16a1d Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 16 Oct 2019 13:44:01 -0400 Subject: Make TOC match up --- doc/ale.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ale.txt b/doc/ale.txt index e8716de1..28cb7907 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -2411,7 +2411,7 @@ documented in additional help files. rust....................................|ale-rust-options| cargo.................................|ale-rust-cargo| rls...................................|ale-rust-rls| - rust-analyzer.........................|ale-rust-analyzer| + analyzer..............................|ale-rust-analyzer| rustc.................................|ale-rust-rustc| rustfmt...............................|ale-rust-rustfmt| sass....................................|ale-sass-options| -- cgit v1.2.3 From 29d0987859695b60c3515feb45ff45ef6443d5ad Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 16 Oct 2019 14:01:57 -0400 Subject: Fix TOC sorting --- doc/ale.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ale.txt b/doc/ale.txt index 28cb7907..01b8f858 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -2409,9 +2409,9 @@ documented in additional help files. sorbet................................|ale-ruby-sorbet| standardrb............................|ale-ruby-standardrb| rust....................................|ale-rust-options| + analyzer..............................|ale-rust-analyzer| cargo.................................|ale-rust-cargo| rls...................................|ale-rust-rls| - analyzer..............................|ale-rust-analyzer| rustc.................................|ale-rust-rustc| rustfmt...............................|ale-rust-rustfmt| sass....................................|ale-sass-options| -- cgit v1.2.3 From 4b53d88cb83951cfd6b246dcf5d7ba0ad2b56d14 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 16 Oct 2019 14:03:10 -0400 Subject: Also list analyzer in doc/ supported tools --- doc/ale-supported-languages-and-tools.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt index a5b7c35e..2076617b 100644 --- a/doc/ale-supported-languages-and-tools.txt +++ b/doc/ale-supported-languages-and-tools.txt @@ -404,6 +404,7 @@ Notes: * Rust * `cargo`!! * `rls` + * `rust-analyzer` * `rustc` (see |ale-integration-rust|) * `rustfmt` * Sass -- cgit v1.2.3 From fedd3de59f3bea1ecb202250fc1d67a66b0a708f Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 16 Oct 2019 14:41:04 -0400 Subject: Place rust sections in alphabetical order --- doc/ale-rust.txt | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'doc') diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt index 05390225..b4efbb1b 100644 --- a/doc/ale-rust.txt +++ b/doc/ale-rust.txt @@ -41,6 +41,25 @@ Integration Information Also note that rustc 1.12. or later is needed. +=============================================================================== +analyzer *ale-rust-analyzer* + +g:ale_rust_analyzer_executable *g:ale_rust_analyzer_executable* + *b:ale_rust_analyzer_executable* + Type: |String| + Default: `'ra_lsp_server'` + + This variable can be modified to change the executable path for + `rust-analyzer`. + + +g:ale_rust_analyzer_config *g:ale_rust_analyzer_config* + *b:ale_rust_analyzer_config* + Type: |Dictionary| + Default: `{}` + + Dictionary with configuration settings for rust-analyzer. + =============================================================================== cargo *ale-rust-cargo* @@ -195,25 +214,6 @@ g:ale_rust_rls_config *g:ale_rust_rls_config* \ } -=============================================================================== -analyzer *ale-rust-analyzer* - -g:ale_rust_analyzer_executable *g:ale_rust_analyzer_executable* - *b:ale_rust_analyzer_executable* - Type: |String| - Default: `'ra_lsp_server'` - - This variable can be modified to change the executable path for - `rust-analyzer`. - - -g:ale_rust_analyzer_config *g:ale_rust_analyzer_config* - *b:ale_rust_analyzer_config* - Type: |Dictionary| - Default: `{}` - - Dictionary with configuration settings for rust-analyzer. - =============================================================================== rustc *ale-rust-rustc* -- cgit v1.2.3 From 715733f44def5e162d90184ae12886c54adeeb5b Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 11 Dec 2019 12:01:28 -0500 Subject: Fix Rust linter/fixer listing --- doc/ale-rust.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt index b4efbb1b..2e0f3474 100644 --- a/doc/ale-rust.txt +++ b/doc/ale-rust.txt @@ -9,7 +9,7 @@ Integration Information files for Rust distributed in Vim >=8.0.0501 or upstream: https://github.com/rust-lang/rust.vim - Note that there are three possible linters for Rust files: + Note that there are several possible linters and fixers for Rust files: 1. rustc -- The Rust compiler is used to check the currently edited file. So, if your project consists of multiple files, you will get some errors @@ -23,12 +23,12 @@ Integration Information over cargo. rls implements the Language Server Protocol for incremental compilation of Rust code, and can check Rust files while you type. `rls` requires Rust files to contained in Cargo projects. - 3. analyzer -- If you have rust-analyzer installed, you might prefer using + 4. analyzer -- If you have rust-analyzer installed, you might prefer using this linter over cargo and rls. rust-analyzer also implements the Language Server Protocol for incremental compilation of Rust code, and is the next iteration of rls. rust-analyzer, like rls, requires Rust files to contained in Cargo projects. - 4. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to + 5. rustfmt -- If you have `rustfmt` installed, you can use it as a fixer to consistently reformat your Rust code. Only cargo is enabled by default. To switch to using rustc instead of cargo, -- cgit v1.2.3 From 6087765cad9271a54d3a29c0c0e6582332461451 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Thu, 9 Apr 2020 13:23:03 -0400 Subject: Move to rust-analyzer everywhere --- doc/ale-rust.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt index 2e0f3474..46d4714b 100644 --- a/doc/ale-rust.txt +++ b/doc/ale-rust.txt @@ -47,7 +47,7 @@ analyzer *ale-rust-analyzer* g:ale_rust_analyzer_executable *g:ale_rust_analyzer_executable* *b:ale_rust_analyzer_executable* Type: |String| - Default: `'ra_lsp_server'` + Default: `'rust-analyzer'` This variable can be modified to change the executable path for `rust-analyzer`. -- cgit v1.2.3