aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/server_configurations.md20
-rw-r--r--doc/server_configurations.txt20
2 files changed, 26 insertions, 14 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 8b2a8618..e7e59fe2 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -6960,7 +6960,19 @@ https://github.com/rust-analyzer/rust-analyzer
rust-analyzer (aka rls 2.0), a language server for Rust
-See [docs](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#settings) for extra settings.
+
+See [docs](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#settings) for extra settings. The settings can be used like this:
+```lua
+require'lspconfig'.rust_analyzer.setup{
+ settings = {
+ ['rust-analyzer'] = {
+ diagnostics = {
+ enable = false;
+ }
+ }
+ }
+}
+```
@@ -6984,12 +6996,6 @@ require'lspconfig'.rust_analyzer.setup{}
```lua
root_pattern("Cargo.toml", "rust-project.json")
```
- - `settings` :
- ```lua
- {
- ["rust-analyzer"] = {}
- }
- ```
## salt_ls
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 8b2a8618..e7e59fe2 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -6960,7 +6960,19 @@ https://github.com/rust-analyzer/rust-analyzer
rust-analyzer (aka rls 2.0), a language server for Rust
-See [docs](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#settings) for extra settings.
+
+See [docs](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#settings) for extra settings. The settings can be used like this:
+```lua
+require'lspconfig'.rust_analyzer.setup{
+ settings = {
+ ['rust-analyzer'] = {
+ diagnostics = {
+ enable = false;
+ }
+ }
+ }
+}
+```
@@ -6984,12 +6996,6 @@ require'lspconfig'.rust_analyzer.setup{}
```lua
root_pattern("Cargo.toml", "rust-project.json")
```
- - `settings` :
- ```lua
- {
- ["rust-analyzer"] = {}
- }
- ```
## salt_ls