summaryrefslogtreecommitdiff
path: root/script/core/completion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r--script/core/completion.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index d65f4b3a..fe6ff2ef 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -245,12 +245,10 @@ local function buildDesc(source)
local hover = getHover.get(source)
local md = markdown()
md:add('lua', hover.label)
+ md:splitLine()
md:add('md', hover.description)
- local snip = getSnip(source)
- if snip then
- md:add('md', '-------------')
- md:add('lua', snip)
- end
+ md:splitLine()
+ md:add('lua', getSnip(source))
return md:string()
end