summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-09 16:57:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-09 16:57:03 +0800
commit0d5154ea32e8aace5866a67cb42992baff9e16be (patch)
treef10ae74b086c69aada348768ff6163592189eb63 /script/core
parent670dc93567d88e8d2ef288dc3c266d591c90beb5 (diff)
downloadlua-language-server-0d5154ea32e8aace5866a67cb42992baff9e16be.zip
completion: call snip triggers signature
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 26776634..ad8dd466 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -210,6 +210,10 @@ local function buildFunction(results, source, value, oop, data)
snipData.kind = define.CompletionItemKind.Snippet
snipData.insertText = buildFunctionSnip(source, value, oop)
snipData.insertTextFormat = 2
+ snipData.command = {
+ title = 'trigger signature',
+ command = 'editor.action.triggerParameterHints',
+ }
snipData.id = stack(function ()
return {
detail = buildDetail(source),