diff options
Diffstat (limited to 'src/configs/ocaml.rs')
-rw-r--r-- | src/configs/ocaml.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configs/ocaml.rs b/src/configs/ocaml.rs index f407c6b9d..7f1dad715 100644 --- a/src/configs/ocaml.rs +++ b/src/configs/ocaml.rs @@ -8,6 +8,9 @@ pub struct OCamlConfig<'a> { pub symbol: &'a str, pub style: &'a str, pub disabled: bool, + pub detect_extensions: Vec<&'a str>, + pub detect_files: Vec<&'a str>, + pub detect_folders: Vec<&'a str>, } impl<'a> RootModuleConfig<'a> for OCamlConfig<'a> { @@ -17,6 +20,9 @@ impl<'a> RootModuleConfig<'a> for OCamlConfig<'a> { symbol: "🐫 ", style: "bold yellow", disabled: false, + detect_extensions: vec!["opam", "ml", "mli", "re", "rei"], + detect_files: vec!["dune", "dune-project", "jbuild", "jbuild-ignore", ".merlin"], + detect_folders: vec!["_opam", "esy.lock"], } } } |