summaryrefslogtreecommitdiff
path: root/script-beta/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-08 17:11:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-08 17:11:08 +0800
commit7a2ef1c1a699417ce7998bc088c68fc652d745af (patch)
tree56f9ef9c7819327a46b3fdf5c707277c60f71817 /script-beta/provider
parentcd85566f13cfa14cd6cd955363114e6591436178 (diff)
downloadlua-language-server-7a2ef1c1a699417ce7998bc088c68fc652d745af.zip
callarg的enum
Diffstat (limited to 'script-beta/provider')
-rw-r--r--script-beta/provider/provider.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script-beta/provider/provider.lua b/script-beta/provider/provider.lua
index 01695fb4..6916ff96 100644
--- a/script-beta/provider/provider.lua
+++ b/script-beta/provider/provider.lua
@@ -328,6 +328,10 @@ proto.on('textDocument/completion', function (params)
sortText = ('%04d'):format(i),
insertText = res.insertText,
insertTextFormat = res.insertTextFormat,
+ documentation = res.description and {
+ value = res.description,
+ kind = 'markdown',
+ },
}
if res.id then
if easy and os.clock() - clock < 0.05 then