summaryrefslogtreecommitdiff
path: root/script/core/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-05 05:56:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-05 05:56:03 +0800
commit0e159ee03730b74c284c5ad079215b31461d266e (patch)
tree9fd2d7aef9903d9c9c2d07749ea9f1175b0eee77 /script/core/hover
parent9310038417408a5c2f6c148447d951f248fce2fe (diff)
downloadlua-language-server-0e159ee03730b74c284c5ad079215b31461d266e.zip
update
Diffstat (limited to 'script/core/hover')
-rw-r--r--script/core/hover/description.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 83f4bcca..49e8d2bc 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -158,8 +158,8 @@ local function buildEnumChunk(docType, name)
end
local types = {}
for _, tp in ipairs(docType.types) do
- if tp.type ~= 'doc.enum'
- and tp.type ~= 'doc.resume' then
+ if tp.type ~= 'doc.string'
+ and tp.type ~= 'doc.integer' then
types[#types+1] = tp[1]
end
end