summaryrefslogtreecommitdiff
path: root/script/plugin.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-01-23 03:11:38 +0800
committersumneko <sumneko@hotmail.com>2022-01-23 03:11:38 +0800
commitce3a22bacd3acd2984c14246feee9bd90283279a (patch)
treee27056967c9f48ecb81495fa78d5f197677ca706 /script/plugin.lua
parent37760683528051654ceff5026b28462ebc22df7c (diff)
downloadlua-language-server-ce3a22bacd3acd2984c14246feee9bd90283279a.zip
cleanup
Diffstat (limited to 'script/plugin.lua')
-rw-r--r--script/plugin.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/plugin.lua b/script/plugin.lua
index 677644ef..145abe74 100644
--- a/script/plugin.lua
+++ b/script/plugin.lua
@@ -3,6 +3,7 @@ local util = require 'utility'
local client = require 'client'
local lang = require 'language'
local await = require 'await'
+local scope = require 'workspace.scope'
---@class plugin
local m = {}
@@ -16,8 +17,7 @@ function m.showError(scp, err)
end
function m.dispatch(event, uri, ...)
- local ws = require 'workspace'
- local scp = ws.getScope(uri)
+ local scp = scope.getScope(uri)
local interface = scp:get('pluginInterface')
if not interface then
return false