summaryrefslogtreecommitdiff
path: root/test/completion/continue.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion/continue.lua')
-rw-r--r--test/completion/continue.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/completion/continue.lua b/test/completion/continue.lua
new file mode 100644
index 00000000..4644c745
--- /dev/null
+++ b/test/completion/continue.lua
@@ -0,0 +1,32 @@
+local define = require 'proto.define'
+local config = require 'config'
+
+config.set('Lua.completion.callSnippet', 'Disable')
+config.set('Lua.completion.keywordSnippet', 'Disable')
+config.set('Lua.completion.workspaceWord', false)
+
+ContinueTyping = true
+
+TEST [[
+local zabcde
+za$
+]]
+{
+ {
+ label = 'zabcde',
+ kind = define.CompletionItemKind.Variable,
+ }
+}
+
+TEST [[
+-- zabcde
+io.z$
+]]
+{
+ {
+ label = 'zabcde',
+ kind = define.CompletionItemKind.Text,
+ }
+}
+
+ContinueTyping = false