mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-17 02:08:30 +00:00
Merge #2704
2704: Add example of color customization r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
6896ffab60
1 changed files with 3 additions and 10 deletions
|
@ -88,16 +88,9 @@ host.
|
|||
### Settings
|
||||
|
||||
* `rust-analyzer.highlightingOn`: enables experimental syntax highlighting.
|
||||
* `rust-analyzer.scopeMappings` -- a scheme backed JSON object to tweak Rust Analyzer scopes to TextMate scopes.
|
||||
```jsonc
|
||||
{
|
||||
//Will autocomplete keys to available RA scopes.
|
||||
"keyword.unsafe": ["keyword", "keyword.control"],
|
||||
//Values are string | TextMateScope | [string | TextMateScope]
|
||||
"variable.mut": "variable"
|
||||
}
|
||||
```
|
||||
* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts
|
||||
Colors can be configured via `editor.tokenColorCustomizations`.
|
||||
As an example, [Pale Fire](https://github.com/matklad/pale-fire/) color scheme tweaks rust colors.
|
||||
* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts.
|
||||
`Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin.
|
||||
* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable
|
||||
* `rust-analyzer.enableCargoWatchOnStartup`: prompt to install & enable `cargo
|
||||
|
|
Loading…
Reference in a new issue