summaryrefslogtreecommitdiff
path: root/test/completion/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion/common.lua')
-rw-r--r--test/completion/common.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 6543e5f6..58b27fe7 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -2480,6 +2480,24 @@ foo<??>
insertText = 'foo(${1:a?: any}, ${2:b: any})',
},
}
+
+TEST [[
+---@param f fun(a: any, b: any)
+local function foo(f) end
+foo<??>
+]]
+{
+ {
+ label = 'foo(f)',
+ kind = define.CompletionItemKind.Function,
+ insertText = 'foo',
+ },
+ {
+ label = 'foo(f)',
+ kind = define.CompletionItemKind.Snippet,
+ insertText = 'foo(${1:f: fun(a: any, b: any)})',
+ },
+}
Cared['insertText'] = false
TEST [[