summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/signatureHelp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument/signatureHelp.lua')
-rw-r--r--server/src/method/textDocument/signatureHelp.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/src/method/textDocument/signatureHelp.lua b/server/src/method/textDocument/signatureHelp.lua
index 6551464f..e898d32f 100644
--- a/server/src/method/textDocument/signatureHelp.lua
+++ b/server/src/method/textDocument/signatureHelp.lua
@@ -12,15 +12,18 @@ return function (lsp, params)
return
end
- local description = hovers[1].description
+ local hover = hovers[1]
+ local desc = {}
+ desc[#desc+1] = '```lua\n' .. hover.label .. '\n```\n'
+ desc[#desc+1] = hover.description
local active
local signatures = {}
for i, hover in ipairs(hovers) do
local signature = {
- label = hover.label,
+ label = hover.title,
documentation = {
kind = 'markdown',
- value = description,
+ value = table.concat(desc, '\n'),
},
}
if hover.argLabel then