diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-06-03 10:52:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-06-03 10:52:52 +0800 |
commit | 2d5c2cc1bfb64cc07ec72512522eedb07a8a9180 (patch) | |
tree | 6f1439e72475cd92f4f4fd98a7bf830e00ad1f04 /script/method/textDocument | |
parent | 93f3c3bce6496a7cdcf89e4fee4f50bca29d5a80 (diff) | |
download | lua-language-server-2d5c2cc1bfb64cc07ec72512522eedb07a8a9180.zip |
signature help 上显示查看文档
Diffstat (limited to 'script/method/textDocument')
-rw-r--r-- | script/method/textDocument/signatureHelp.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/method/textDocument/signatureHelp.lua b/script/method/textDocument/signatureHelp.lua index e7e695ca..3c6890d7 100644 --- a/script/method/textDocument/signatureHelp.lua +++ b/script/method/textDocument/signatureHelp.lua @@ -18,6 +18,7 @@ return function (lsp, params) local hover = hovers[1] local desc = {} desc[#desc+1] = hover.description + desc[#desc+1] = hover.doc local active local signatures = {} for i, hover in ipairs(hovers) do @@ -25,7 +26,7 @@ return function (lsp, params) label = hover.label, documentation = { kind = 'markdown', - value = table.concat(desc, '\n'), + value = table.concat(desc, '\n\n'), }, } if hover.argLabel then |