aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-06-12 01:20:37 +0000
committerBlaž Hrastnik2021-06-12 01:20:37 +0000
commit278361a08627240e47503e21a88b81a40f4a1caf (patch)
tree28b9f3053f68da2f8c0331ce123ed72c212bf9e3 /helix-core
parent69fe46a122f728b4bb6cb218fd410544097b0dcd (diff)
Only auto-format for certain languages
Fixes #53 Fixes #207
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/syntax.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index ec21719b..5c4c95b9 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -28,8 +28,8 @@ pub struct LanguageConfiguration {
pub file_types: Vec<String>, // filename ends_with? <Gemfile, rb, etc>
pub roots: Vec<String>, // these indicate project roots <.git, Cargo.toml>
- // pub path: PathBuf,
- // root_path for tree-sitter (^)
+ #[serde(default)]
+ pub auto_format: bool,
// content_regex
// injection_regex