//! FIXME: write short doc here
+mod completion_config;
mod completion_item;
mod completion_context;
mod presentation;
FilePosition,
};
-pub use crate::completion::completion_item::{
- CompletionItem, CompletionItemKind, CompletionScore, InsertTextFormat,
+pub use crate::completion::{
+ completion_config::CompletionConfig,
+ completion_item::{CompletionItem, CompletionItemKind, CompletionScore, InsertTextFormat},
};
-#[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,
- }
- }
-}
-
/// Main entry point for completion. We run completion as a two-phase process.
///
/// First, we look at the position and collect a so-called `CompletionContext.
--- /dev/null
+#[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,
+ }
+ }
+}