summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Dunn <nexela@gmail.com>2022-07-24 05:08:37 -0400
committerNicholas Dunn <nexela@gmail.com>2022-07-24 05:08:37 -0400
commitcb9b62f86de49abd3325c07a325dc7ed12bd51b0 (patch)
tree34796d1554127dc6ec969e5716ca6a16e92f9336
parent082b0bf826021ecbce94ab126fa1e9f44888d42c (diff)
downloadlua-language-server-cb9b62f86de49abd3325c07a325dc7ed12bd51b0.zip
Add uri to plugin call
-rw-r--r--script/plugin.lua3
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