summaryrefslogtreecommitdiff
path: root/server/src/core/hover/hover.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-18 16:23:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-18 16:23:16 +0800
commit357e62b68d67c4218d95f6bee937e6d5e206d752 (patch)
treed53917e3e64b7f252fcb54116c9e5609fe380805 /server/src/core/hover/hover.lua
parentde4cec30d4befc0de4bd264c16c52c1a575cd5d3 (diff)
downloadlua-language-server-357e62b68d67c4218d95f6bee937e6d5e206d752.zip
重构文件符号
Diffstat (limited to 'server/src/core/hover/hover.lua')
-rw-r--r--server/src/core/hover/hover.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/core/hover/hover.lua b/server/src/core/hover/hover.lua
index c7aba17e..f09bfce4 100644
--- a/server/src/core/hover/hover.lua
+++ b/server/src/core/hover/hover.lua
@@ -220,5 +220,11 @@ return function (source, lsp, select)
if source.type == 'name' and source:bindValue() then
return hoverAsValue(source, lsp, select)
end
+ if source.type == 'simple' then
+ source = source[#source]
+ if source.type == 'name' and source:bindValue() then
+ return hoverAsValue(source, lsp, select)
+ end
+ end
return nil
end