summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-13 18:35:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-13 18:35:12 +0800
commit0d8d0058446ee576a6d8f186c49dabd7ff9d8f04 (patch)
tree8dfaeac881631751f1bfaed9a2bbcb3c27a8e6cc
parentaa8f0cf95aab2254441689d17c4f7aed117075f5 (diff)
downloadlua-language-server-0d8d0058446ee576a6d8f186c49dabd7ff9d8f04.zip
change dividing line in hover
-rw-r--r--script/core/hover/description.lua1
-rw-r--r--script/provider/provider.lua1
2 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 09a27138..f9a0fc1d 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -240,7 +240,6 @@ local function getFunctionComment(source)
return
end
local md = markdown()
- md:add('md', "---")
if comments ~= "" then
md:add('md', comments)
end
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 66d8cca3..6028e6fe 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -206,6 +206,7 @@ proto.on('textDocument/hover', function (params)
end
local md = markdown()
md:add('lua', hover.label)
+ md:add('md', "---")
md:add('md', hover.description)
return {
contents = {