summaryrefslogtreecommitdiff
path: root/script-beta/provider/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-10 14:25:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-10 14:25:40 +0800
commitee07ad02720ea8e36f08e1f7981d2b41cb7e9f07 (patch)
treec8cb775888ec0cc543eb14cb3458aa494d30374e /script-beta/provider/init.lua
parent328db97c169dfa44607acebd09bd63ca22491733 (diff)
downloadlua-language-server-ee07ad02720ea8e36f08e1f7981d2b41cb7e9f07.zip
格式化文档
Diffstat (limited to 'script-beta/provider/init.lua')
-rw-r--r--script-beta/provider/init.lua13
1 files changed, 9 insertions, 4 deletions
diff --git a/script-beta/provider/init.lua b/script-beta/provider/init.lua
index d6cac333..1965f820 100644
--- a/script-beta/provider/init.lua
+++ b/script-beta/provider/init.lua
@@ -315,10 +315,15 @@ proto.on('textDocument/completion', function (params)
local items = {}
for i, res in ipairs(result) do
items[i] = {
- label = res.label,
- kind = res.kind,
- sortText = ('%04d'):format(i),
- insertText = res.insertText,
+ label = res.label,
+ kind = res.kind,
+ detail = res.detail,
+ documentation = {
+ value = res.documentation,
+ kind = 'markdown',
+ },
+ sortText = ('%04d'):format(i),
+ insertText = res.insertText,
insertTextFormat = res.insertTextFormat,
}
end