summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-21 15:39:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-21 15:39:24 +0800
commit600f5e09cd79585aba80ee692ca0a0995b874451 (patch)
tree943ac58ed3dc1417b56c24902862376dfbba6778 /script
parent0698837b756f5a0239f9c4cfeefc075835e93f5a (diff)
downloadlua-language-server-600f5e09cd79585aba80ee692ca0a0995b874451.zip
improve
Diffstat (limited to 'script')
-rw-r--r--script/plugin.lua4
1 files changed, 4 insertions, 0 deletions
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