diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-26 21:00:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-26 21:00:59 +0800 |
commit | def0d9b2a3d70d61217020b82cf0edf913ea1ac6 (patch) | |
tree | ecd852562a7000e47e028718a27e13477569b6d0 /server/src/core/completion.lua | |
parent | 6fb028ef9e053076170ed03e46b9a4ab5d248e0c (diff) | |
parent | f92a71db462b2769eea194143f15ab090b665862 (diff) | |
download | lua-language-server-def0d9b2a3d70d61217020b82cf0edf913ea1ac6.zip |
Merge commit 'f92a71db462b2769eea194143f15ab090b665862'
Diffstat (limited to 'server/src/core/completion.lua')
-rw-r--r-- | server/src/core/completion.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index 34eecb0e..3575622e 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -76,6 +76,20 @@ local function getDucumentation(name, value) value = text, } end + local lib = value:getLib() + if lib then + return { + kind = 'markdown', + value = lib.description, + } + end + local comment = value:getComment() + if comment then + return { + kind = 'markdown', + value = comment, + } + end return nil end |