From 4bb0f1845c5cc6465aecedc773fc2d619fcd8faf Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 10 Mar 2023 00:26:59 +0000 Subject: docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 20 +++++++++++++------- doc/server_configurations.txt | 20 +++++++++++++------- 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 -- cgit v1.2.3-70-g09d2