summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-08 15:24:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-08 15:24:04 +0800
commit419052ee299b2b9c23dfd644fea1ae92d197a633 (patch)
tree1c95b033f6e8ce8d8c4bd594c3c9cf32392534bd /script/provider
parent27ae9cdb3e2be76b63e7fc73ffde3eed2f8691dd (diff)
downloadlua-language-server-419052ee299b2b9c23dfd644fea1ae92d197a633.zip
small improve
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 179b7ed0..8c72be1b 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -301,10 +301,7 @@ proto.on('textDocument/hover', function (params)
end
local md = markdown()
md:add('lua', hover.label)
- if hover.label and #hover.label > 0
- and hover.description and #hover.description > 0 then
- md:add('md', "---")
- end
+ md:splitLine()
md:add('md', hover.description)
return {
contents = {