feat: commit code

This commit is contained in:
YuKun Liu committed 2022-09-24 22:50:13 -07:00
1 parent 6004cfdd40
commit 6ad1333a94
1 file changed
+2
+2
View File
@@ -260,10 +260,12 @@ impl PluginManager {
for p in child_dirs { for p in child_dirs {
if let Ok(p) = p { if let Ok(p) = p {
if p.path().is_dir() && p.file_name() != "library" { if p.path().is_dir() && p.file_name() != "library" {
if p.path().join("init.lua").is_file() {
res.push(p.file_name().to_str().unwrap().to_string()); res.push(p.file_name().to_str().unwrap().to_string());
} }
} }
} }
}
res res
} }