Skip to content

Commit

Permalink
feat: Derive serde defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
afnanenayet committed Nov 25, 2023
1 parent 8af2232 commit c733618
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion assets/sample_config.json5
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"exclude-kinds": ["string"],
// You can specifically allow only certain tree sitter node types
"include-kinds": ["method_definition"],
"ignore-newlines": false,
"strip-whitespace": true,
}
}
2 changes: 1 addition & 1 deletion src/input_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait TSNodeTrait {

/// The configuration options for processing tree-sitter output.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
#[serde(rename_all = "kebab-case", default)]
pub struct TreeSitterProcessor {
/// Whether we should split the nodes graphemes.
///
Expand Down

0 comments on commit c733618

Please # to comment.