aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <github-actions@github.com>2023-03-10 00:26:59 +0000
committergithub-actions <github-actions@github.com>2023-03-10 00:26:59 +0000
commit4bb0f1845c5cc6465aecedc773fc2d619fcd8faf (patch)
treecc631c6c30b8a584291320d4e51972ce65313e63
parentfix(rust_analyzer): remove stub settings from default (#2401) (diff)
downloadnvim-lspconfig-4bb0f1845c5cc6465aecedc773fc2d619fcd8faf.tar
nvim-lspconfig-4bb0f1845c5cc6465aecedc773fc2d619fcd8faf.tar.gz
nvim-lspconfig-4bb0f1845c5cc6465aecedc773fc2d619fcd8faf.tar.bz2
nvim-lspconfig-4bb0f1845c5cc6465aecedc773fc2d619fcd8faf.tar.lz
nvim-lspconfig-4bb0f1845c5cc6465aecedc773fc2d619fcd8faf.tar.xz
nvim-lspconfig-4bb0f1845c5cc6465aecedc773fc2d619fcd8faf.tar.zst
nvim-lspconfig-4bb0f1845c5cc6465aecedc773fc2d619fcd8faf.zip
docs: update server_configurations.md
skip-checks: true
-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