diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-10 14:25:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-10 14:25:40 +0800 |
commit | ee07ad02720ea8e36f08e1f7981d2b41cb7e9f07 (patch) | |
tree | c8cb775888ec0cc543eb14cb3458aa494d30374e /script-beta/provider/init.lua | |
parent | 328db97c169dfa44607acebd09bd63ca22491733 (diff) | |
download | lua-language-server-ee07ad02720ea8e36f08e1f7981d2b41cb7e9f07.zip |
格式化文档
Diffstat (limited to 'script-beta/provider/init.lua')
-rw-r--r-- | script-beta/provider/init.lua | 13 |
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 |