diff options
author | Nicholas Dunn <nexela@gmail.com> | 2022-07-24 05:08:37 -0400 |
---|---|---|
committer | Nicholas Dunn <nexela@gmail.com> | 2022-07-24 05:08:37 -0400 |
commit | cb9b62f86de49abd3325c07a325dc7ed12bd51b0 (patch) | |
tree | 34796d1554127dc6ec969e5716ca6a16e92f9336 | |
parent | 082b0bf826021ecbce94ab126fa1e9f44888d42c (diff) | |
download | lua-language-server-cb9b62f86de49abd3325c07a325dc7ed12bd51b0.zip |
Add uri to plugin call
-rw-r--r-- | script/plugin.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/plugin.lua b/script/plugin.lua index 81e17d8b..870b68b6 100644 --- a/script/plugin.lua +++ b/script/plugin.lua @@ -115,7 +115,8 @@ local function initPlugin(uri) if not client.isVSCode() and not checkTrustLoad(scp) then return end - local suc, err = xpcall(f, log.error, f, config.get(scp.uri, 'Lua.runtime.pluginArgs')) + local pluginArgs = config.get(scp.uri, 'Lua.runtime.pluginArgs') + local suc, err = xpcall(f, log.error, f, uri, pluginArgs) if not suc then m.showError(scp, err) return |