Skip to content

Commit cbf3713

Browse files
committed
Auto merge of #15313 - prez:patch-1, r=lnicola
docs: Add example on how to change configuration options in Kate closes #15305
2 parents 6b8eb75 + b6f31f0 commit cbf3713

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

docs/user/manual.adoc

+15-18
Original file line numberDiff line numberDiff line change
@@ -449,27 +449,24 @@ You'll need to close and reopen all .rs and Cargo files, or to restart the IDE,
449449
Support for the language server protocol is built into Kate through the LSP plugin, which is included by default.
450450
It is preconfigured to use rust-analyzer for Rust sources since Kate 21.12.
451451

452-
Earlier versions allow you to use rust-analyzer through a simple settings change.
453-
In the LSP Client settings of Kate, copy the content of the third tab "default parameters" to the second tab "server configuration".
454-
Then in the configuration replace:
455-
[source,json]
456-
----
457-
"rust": {
458-
"command": ["rls"],
459-
"rootIndicationFileNames": ["Cargo.lock", "Cargo.toml"],
460-
"url": "https://github.com/rust-lang/rls",
461-
"highlightingModeRegex": "^Rust$"
462-
},
463-
----
464-
With
452+
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):
465453
[source,json]
466454
----
455+
{
456+
"servers": {
467457
"rust": {
468-
"command": ["rust-analyzer"],
469-
"rootIndicationFileNames": ["Cargo.lock", "Cargo.toml"],
470-
"url": "https://github.com/rust-lang/rust-analyzer",
471-
"highlightingModeRegex": "^Rust$"
472-
},
458+
"initializationOptions": {
459+
"cachePriming": {
460+
"enable": false
461+
},
462+
"check": {
463+
"allTargets": false
464+
},
465+
"checkOnSave": false
466+
}
467+
}
468+
}
469+
}
473470
----
474471
Then click on apply, and restart the LSP server for your rust project.
475472

0 commit comments

Comments
 (0)