diff options
author | Skyler Hawthorne | 2022-09-17 03:17:48 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-10-19 02:31:39 +0000 |
commit | 3f07885b351748c5b8225aadb165f8ef7066f047 (patch) | |
tree | 37ece44a32184a6902fccdab77adaf13713917bc /helix-core/src/syntax.rs | |
parent | b530a86d1f15cc7df0e1ae8aa4bd02109ac33a8f (diff) |
document should save even if formatter fails
Diffstat (limited to 'helix-core/src/syntax.rs')
-rw-r--r-- | helix-core/src/syntax.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 61d382fd..f907629f 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -61,6 +61,12 @@ pub struct Configuration { pub language: Vec<LanguageConfiguration>, } +impl Default for Configuration { + fn default() -> Self { + crate::config::default_syntax_loader() + } +} + // largely based on tree-sitter/cli/src/loader.rs #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "kebab-case", deny_unknown_fields)] |