summaryrefslogtreecommitdiff
path: root/server/src/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-12 16:14:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-12 16:14:15 +0800
commitd1d6456378664a36a99094ddeb6b0c28f0449d72 (patch)
tree85e4e6c5cee6c730db9fe45667b05cb16d916753 /server/src/method
parentfa0f8b12d5e6d15bd3a3fdb994c20d2fce2a1fbf (diff)
downloadlua-language-server-d1d6456378664a36a99094ddeb6b0c28f0449d72.zip
恢复hover
Diffstat (limited to 'server/src/method')
-rw-r--r--server/src/method/textDocument/hover.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/method/textDocument/hover.lua b/server/src/method/textDocument/hover.lua
index 3233b34a..ea15a32a 100644
--- a/server/src/method/textDocument/hover.lua
+++ b/server/src/method/textDocument/hover.lua
@@ -8,7 +8,7 @@ return function (lsp, params)
end
-- lua是从1开始的,因此都要+1
local position = lines:position(params.position.line + 1, params.position.character + 1)
- local text = matcher.hover(vm.results, position)
+ local text = matcher.hover(vm, position)
if not text then
return nil
end