diff options
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r-- | crates/ra_ide/src/completion/completion_config.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_ide/src/completion/completion_config.rs b/crates/ra_ide/src/completion/completion_config.rs new file mode 100644 index 000000000..c01a8f608 --- /dev/null +++ b/crates/ra_ide/src/completion/completion_config.rs | |||
@@ -0,0 +1,16 @@ | |||
1 | #[derive(Clone, Debug, PartialEq, Eq)] | ||
2 | pub struct CompletionConfig { | ||
3 | pub enable_postfix_completions: bool, | ||
4 | pub add_call_parenthesis: bool, | ||
5 | pub add_call_argument_snippets: bool, | ||
6 | } | ||
7 | |||
8 | impl Default for CompletionConfig { | ||
9 | fn default() -> Self { | ||
10 | CompletionConfig { | ||
11 | enable_postfix_completions: true, | ||
12 | add_call_parenthesis: true, | ||
13 | add_call_argument_snippets: true, | ||
14 | } | ||
15 | } | ||
16 | } | ||