diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-22 15:24:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-22 15:24:40 +0800 |
commit | d09c74c69306fa5b3deb0db68552c9223b6d76df (patch) | |
tree | cbb3df36e3fb9cd0a63b643a991a4976c22f9007 /script/plugin.lua | |
parent | b30e4ff8f33b504880066faea7143342e9aea4f2 (diff) | |
download | lua-language-server-d09c74c69306fa5b3deb0db68552c9223b6d76df.zip |
refactor `require-path`
Diffstat (limited to 'script/plugin.lua')
-rw-r--r-- | script/plugin.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/plugin.lua b/script/plugin.lua index bdd02ea8..2a5ee27f 100644 --- a/script/plugin.lua +++ b/script/plugin.lua @@ -77,6 +77,10 @@ local function initPlugin(uri) local interface = {} scp:set('pluginInterface', interface) + if not scp.uri then + return + end + local pluginPath = ws.getAbsolutePath(scp.uri, config.get(scp.uri, 'Lua.runtime.plugin')) log.info('plugin path:', pluginPath) if not pluginPath then |