summaryrefslogtreecommitdiff
path: root/script/core/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-05 21:15:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-05 21:15:08 +0800
commit48c53a36c6bad6662aabc8af98fb58d54ad9a498 (patch)
treefc2cfcfdfbb761f810d43030b3f948cae86f00c7 /script/core/hover
parent55166a406c56de8fe9f6932fabf9ca1c3cca469a (diff)
downloadlua-language-server-48c53a36c6bad6662aabc8af98fb58d54ad9a498.zip
resolve #1065 show detail for `doc.type.table`
Diffstat (limited to 'script/core/hover')
-rw-r--r--script/core/hover/label.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/hover/label.lua b/script/core/hover/label.lua
index a91ca074..5befe84c 100644
--- a/script/core/hover/label.lua
+++ b/script/core/hover/label.lua
@@ -55,7 +55,8 @@ local function asValue(source, title)
and ( type == 'table'
or type == 'any'
or type == 'unknown'
- or type == 'nil') then
+ or type == 'nil'
+ or type:sub(1, 1) == '{') then
else
pack[#pack+1] = type
end