about summary refs log tree commit diff
diff options
context:
space:
mode:
authorprez <prez@national.shitposting.agency>2023-07-19 20:37:39 +0200
committerprez <prez@national.shitposting.agency>2023-07-20 11:47:41 +0200
commitb6f31f0fee4c3b2a39529cc99f9e411eca5dc5d7 (patch)
treea5d7c05414767d9a07c97b5dd1c7948d0d1eecf8
parentcecbd3f84a9fb88a2635c9c1d09f3b05d8c6dee8 (diff)
downloadrust-b6f31f0fee4c3b2a39529cc99f9e411eca5dc5d7.tar.gz
rust-b6f31f0fee4c3b2a39529cc99f9e411eca5dc5d7.zip
docs: Add example on how to change configuration options in Kate
-rw-r--r--docs/user/manual.adoc33
1 files changed, 15 insertions, 18 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index 31035c4b729..2cf985adabc 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -449,27 +449,24 @@ You'll need to close and reopen all .rs and Cargo files, or to restart the IDE,
 Support for the language server protocol is built into Kate through the LSP plugin, which is included by default.
 It is preconfigured to use rust-analyzer for Rust sources since Kate 21.12.
 
-Earlier versions allow you to use rust-analyzer through a simple settings change.
-In the LSP Client settings of Kate, copy the content of the third tab "default parameters" to the second tab "server configuration".
-Then in the configuration replace:
-[source,json]
-----
-        "rust": {
-            "command": ["rls"],
-            "rootIndicationFileNames": ["Cargo.lock", "Cargo.toml"],
-            "url": "https://github.com/rust-lang/rls",
-            "highlightingModeRegex": "^Rust$"
-        },
-----
-With
+To change rust-analyzer config options, start from the following example and put it into Kate's "User Server Settings" tab (located under the LSP Client settings):
 [source,json]
 ----
+{
+    "servers": {
         "rust": {
-            "command": ["rust-analyzer"],
-            "rootIndicationFileNames": ["Cargo.lock", "Cargo.toml"],
-            "url": "https://github.com/rust-lang/rust-analyzer",
-            "highlightingModeRegex": "^Rust$"
-        },
+            "initializationOptions": {
+                "cachePriming": {
+                    "enable": false
+                },
+                "check": {
+                    "allTargets": false
+                },
+                "checkOnSave": false
+            }
+        }
+    }
+}
 ----
 Then click on apply, and restart the LSP server for your rust project.