Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/lib.rs')
-rw-r--r--helix-core/src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs
index b93ee800..8b2edf58 100644
--- a/helix-core/src/lib.rs
+++ b/helix-core/src/lib.rs
@@ -35,6 +35,7 @@ pub mod unicode {
pub use unicode_width as width;
}
+use helix_config::OptionRegistry;
pub use helix_loader::find_workspace;
pub fn find_first_non_whitespace_char(line: RopeSlice) -> Option<usize> {
@@ -69,3 +70,9 @@ pub use diagnostic::Diagnostic;
pub use line_ending::{LineEnding, NATIVE_LINE_ENDING};
pub use transaction::{Assoc, Change, ChangeSet, Deletion, Operation, Transaction};
+
+pub fn init_config(registry: &mut OptionRegistry) {
+ line_ending::init_config(registry);
+ auto_pairs::init_config(registry);
+ indent::init_config(registry);
+}