summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-02 19:55:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-02 19:55:03 +0800
commit295e52be73cf3fbb5f661f74f143c0f294c0f93b (patch)
tree6d29c2af1a1b1239260951bf9bd79975cc1ba14b /script
parent236e20bce227ce9105db82794c340f348d71ea48 (diff)
downloadlua-language-server-295e52be73cf3fbb5f661f74f143c0f294c0f93b.zip
#352 split multi description
Diffstat (limited to 'script')
-rw-r--r--script/core/hover/description.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 24360118..9b55223b 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -240,6 +240,8 @@ local function getFunctionComment(source)
end
end
end
+ elseif doc.type == 'doc.overload' then
+ comments[#comments+1] = '---'
end
end
comments = table.concat(comments, "\n\n")