summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index bc17901e..a8cbdfa6 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -226,6 +226,12 @@ loc$
{
label = 'local',
kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'local function',
+ kind = CompletionItemKind.Snippet,
+ insertText = EXISTS,
+ insertTextFormat = 2,
}
}
@@ -780,6 +786,12 @@ else$
{
label = 'elseif',
kind = CompletionItemKind.Keyword,
+ },
+ {
+ label = 'elseif .. then',
+ kind = CompletionItemKind.Snippet,
+ insertText = EXISTS,
+ insertTextFormat = 2,
}
}
@@ -1096,6 +1108,12 @@ end
label = 'elseif',
kind = CompletionItemKind.Keyword,
},
+ {
+ label = 'elseif .. then',
+ kind = CompletionItemKind.Snippet,
+ insertTextFormat = 2,
+ insertText = EXISTS,
+ },
}
TEST [[