From 6ad1333a94dbf4901a0712e1d55f03f3fa4d284f Mon Sep 17 00:00:00 2001 From: YuKun Liu Date: Sat, 24 Sep 2022 22:50:13 -0700 Subject: [PATCH] feat: commit code --- src/plugin/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugin/mod.rs b/src/plugin/mod.rs index 2cd4cb909..9c99c8266 100644 --- a/src/plugin/mod.rs +++ b/src/plugin/mod.rs @@ -260,7 +260,9 @@ impl PluginManager { for p in child_dirs { if let Ok(p) = p { if p.path().is_dir() && p.file_name() != "library" { - res.push(p.file_name().to_str().unwrap().to_string()); + if p.path().join("init.lua").is_file() { + res.push(p.file_name().to_str().unwrap().to_string()); + } } } }