From ce3a22bacd3acd2984c14246feee9bd90283279a Mon Sep 17 00:00:00 2001 From: sumneko Date: Sun, 23 Jan 2022 03:11:38 +0800 Subject: cleanup --- script/plugin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/plugin.lua') 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 -- cgit v1.2.3