diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2021-02-21 19:56:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 19:56:48 +0100 |
commit | 1a6c625521510fee059bec168e73a49aef834c8c (patch) | |
tree | 0ce956cc4aca0aec1838e5b84e6fd759b34fcfda /src/configs | |
parent | fe6f9eeb4de899b813b6c42a60597a0b86429557 (diff) |
feat(kotlin): Configure when the module is shown (#2359)
This makes it possible to configure when the kotlin module is shown
based on the contents of a directory.
Diffstat (limited to 'src/configs')
-rw-r--r-- | src/configs/kotlin.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configs/kotlin.rs b/src/configs/kotlin.rs index 33763a9fd..3ff15b330 100644 --- a/src/configs/kotlin.rs +++ b/src/configs/kotlin.rs @@ -9,6 +9,9 @@ pub struct KotlinConfig<'a> { pub style: &'a str, pub kotlin_binary: &'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 KotlinConfig<'a> { @@ -19,6 +22,9 @@ impl<'a> RootModuleConfig<'a> for KotlinConfig<'a> { style: "bold blue", kotlin_binary: "kotlin", disabled: false, + detect_extensions: vec!["kt", "kts"], + detect_files: vec![], + detect_folders: vec![], } } } |