forked from dbp/sublime-rust
-
Notifications
You must be signed in to change notification settings - Fork 105
/
RustEnhanced.sublime-settings
92 lines (77 loc) · 3.58 KB
/
RustEnhanced.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
// Enable the on-save syntax checking plugin, which will highlight any
// build errors or warnings.
"rust_syntax_checking": true,
// The method used to check code on-save.
// "check" or "clippy" (see README.md)
"rust_syntax_checking_method": "check",
// Enable checking of test code within #[cfg(test)] sections.
// `check` method requires Rust 1.23 or newer.
"rust_syntax_checking_include_tests": true,
// If true, will not display warning messages.
"rust_syntax_hide_warnings": false,
// Color of messages for "clear" theme.
// These use CSS colors. See
// https://www.sublimetext.com/docs/3/minihtml.html for more detail.
"rust_syntax_error_color": "var(--redish)",
"rust_syntax_warning_color": "var(--yellowish)",
"rust_syntax_note_color": "var(--greenish)",
"rust_syntax_help_color": "var(--bluish)",
// Specify environment variables to add when running Cargo.
// "rust_env": {"PATH": "$PATH:$HOME/.cargo/bin"}
// If true, will use the environment from the user's login shell when
// running Cargo.
"rust_include_shell_env": true,
// For errors/warnings, how to show the inline message.
// "normal" - Shows the message inline.
// "popup" - Show popup on mouse hover.
// "none" - Do not show the message inline.
"rust_phantom_style": "normal",
// For errors/warnings, how to highlight the region of the error.
// "outline" - Outlines the region.
// "solid_underline" - A solid underline.
// "stippled_underline" - A stippled underline.
// "squiggly_underline" - A squiggly underline.
// "none" - No outlining.
"rust_region_style": "outline",
// For errors/warnings, what kind of icon to use in the gutter.
// "shape" - Shape-based icons.
// "circle" - Simple circle icons.
// "none" - Do not place icons in the gutter.
"rust_gutter_style": "shape",
// Style for displaying inline messages. Can be:
// "clear" - Clear background with colors matching your color scheme.
// "solid" - Solid background color.
"rust_message_theme": "clear",
// If `true`, displays diagnostic messages under the cursor in the status bar.
"rust_message_status_bar": false,
// The message to display when the syntax check is running.
"rust_message_status_bar_msg": "Rust check running",
// A list of chars that cycle through in the status bar to indicate progress.
"rust_message_status_bar_chars": [".", "..", "...", ".."],
// How often (ms) should the status bar text be updated when syntax checking.
"rust_message_status_bar_update_delay": 200,
// If your cargo project has several build targets, it's possible to specify mapping of
// source code filenames to the target names to enable syntax checking.
// "projects": {
// // One entry per project. Key is a project name.
// "my_cool_stuff": {
// "root": "/path/to/my/cool/stuff/project", // without trailing /src
// // Targets will be used to replace {target} part in the syntax check command:
// // command = 'cargo rustc {target} -- <some options>'. If no one target matches
// // an empty string will be used.
// "targets": {
// "bin/foo.rs": "--bin foo", // format is "source_code_filename -> target_name"
// "bin/bar.rs": "--bin bar",
// "_default": "--lib" // or "--bin main"
// }
// }
// }
"auto_complete_triggers":
[
{
"characters": ".:",
"selector": "source.rust"
}
]
}