From bd3b2393903de2fc98a50426f36d14dc7e86d8da Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Apr 2020 02:01:23 +0200 Subject: Move CompletionConfig to a separate module --- crates/ra_ide/src/completion/completion_config.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 crates/ra_ide/src/completion/completion_config.rs (limited to 'crates/ra_ide/src/completion') 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 @@ +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct CompletionConfig { + pub enable_postfix_completions: bool, + pub add_call_parenthesis: bool, + pub add_call_argument_snippets: bool, +} + +impl Default for CompletionConfig { + fn default() -> Self { + CompletionConfig { + enable_postfix_completions: true, + add_call_parenthesis: true, + add_call_argument_snippets: true, + } + } +} -- cgit v1.2.3