From 600f5e09cd79585aba80ee692ca0a0995b874451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 21 Jun 2021 15:39:24 +0800 Subject: improve --- script/plugin.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script/plugin.lua') diff --git a/script/plugin.lua b/script/plugin.lua index 369afd66..c55960a1 100644 --- a/script/plugin.lua +++ b/script/plugin.lua @@ -49,6 +49,10 @@ function m.init() end end + if not config.config.runtime.plugin or config.config.runtime.plugin == '' then + return + end + local pluginPath = fs.path(config.config.runtime.plugin) if pluginPath:is_relative() then if not ws.path then -- cgit v1.2.3