summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/references.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument/references.lua')
-rw-r--r--server/src/method/textDocument/references.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua
index f9df13ed..555808ca 100644
--- a/server/src/method/textDocument/references.lua
+++ b/server/src/method/textDocument/references.lua
@@ -1,4 +1,4 @@
-local matcher = require 'matcher'
+local core = require 'core'
return function (lsp, params)
local uri = params.textDocument.uri
@@ -9,7 +9,7 @@ return function (lsp, params)
end
-- lua是从1开始的,因此都要+1
local position = lines:position(params.position.line + 1, params.position.character + 1)
- local positions = matcher.references(vm, position, declarat)
+ local positions = core.references(vm, position, declarat)
if not positions then
return {}
end