summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/hover.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-28 15:36:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-28 15:36:56 +0800
commita080b2516d2ce2efb65ad0fd26126cdfa6f6e4f8 (patch)
treeb5672e03d11a43a56b63fe02d7b685eacd21ace4 /server/src/method/textDocument/hover.lua
parent549f6dd7ce8c733f9b51f5e93b3f14c1e2a44aca (diff)
downloadlua-language-server-a080b2516d2ce2efb65ad0fd26126cdfa6f6e4f8.zip
matcher -> core
Diffstat (limited to 'server/src/method/textDocument/hover.lua')
-rw-r--r--server/src/method/textDocument/hover.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/method/textDocument/hover.lua b/server/src/method/textDocument/hover.lua
index ca894797..9c98b8f0 100644
--- a/server/src/method/textDocument/hover.lua
+++ b/server/src/method/textDocument/hover.lua
@@ -1,4 +1,4 @@
-local matcher = require 'matcher'
+local core = require 'core'
return function (lsp, params)
local uri = params.textDocument.uri
@@ -9,12 +9,12 @@ return function (lsp, params)
-- lua是从1开始的,因此都要+1
local position = lines:position(params.position.line + 1, params.position.character + 1)
- local result, source = matcher.findResult(vm, position)
+ local result, source = core.findResult(vm, position)
if not result then
return nil
end
- local hover = matcher.hover(result, source, lsp)
+ local hover = core.hover(result, source, lsp)
if not hover then
return nil
end