diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-08 15:24:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-08 15:24:04 +0800 |
commit | 419052ee299b2b9c23dfd644fea1ae92d197a633 (patch) | |
tree | 1c95b033f6e8ce8d8c4bd594c3c9cf32392534bd /script/provider | |
parent | 27ae9cdb3e2be76b63e7fc73ffde3eed2f8691dd (diff) | |
download | lua-language-server-419052ee299b2b9c23dfd644fea1ae92d197a633.zip |
small improve
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 5 |
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 = { |