aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-24 01:01:23 +0100
committerAleksey Kladov <[email protected]>2020-04-24 01:01:23 +0100
commitbd3b2393903de2fc98a50426f36d14dc7e86d8da (patch)
tree09b92b8f843c642146a7092bfb7ceb8a7c54cb53 /crates/ra_ide/src/completion
parent88d243c742ecd724372c4293b6b6ea293bae2d17 (diff)
Move CompletionConfig to a separate module
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r--crates/ra_ide/src/completion/completion_config.rs16
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)]
2pub struct CompletionConfig {
3 pub enable_postfix_completions: bool,
4 pub add_call_parenthesis: bool,
5 pub add_call_argument_snippets: bool,
6}
7
8impl 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}