summaryrefslogtreecommitdiff
path: root/script/core/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-22 21:15:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-22 21:15:06 +0800
commit5c48724257e1abdd81eed0d0e72b6a1033571b87 (patch)
tree4aecdffe765f82f41082c8c53bfebc2e61d63dbf /script/core/hover
parent52097b6ee7cc8f5a770eb851902560b5b8592218 (diff)
downloadlua-language-server-5c48724257e1abdd81eed0d0e72b6a1033571b87.zip
#406 hover dont show `any` before `{}`
Diffstat (limited to 'script/core/hover')
-rw-r--r--script/core/hover/label.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/hover/label.lua b/script/core/hover/label.lua
index 2fb0b14c..68af973e 100644
--- a/script/core/hover/label.lua
+++ b/script/core/hover/label.lua
@@ -57,7 +57,10 @@ local function asValue(source, title)
local pack = {}
pack[#pack+1] = title
pack[#pack+1] = name .. ':'
- if cont and type == 'table' then
+ if cont
+ and ( type == 'table'
+ or type == 'any'
+ or type == 'nil') then
type = nil
end
if class then