summaryrefslogtreecommitdiff
path: root/server/src/matcher/completion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/completion.lua')
-rw-r--r--server/src/matcher/completion.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/src/matcher/completion.lua b/server/src/matcher/completion.lua
new file mode 100644
index 00000000..66b993a4
--- /dev/null
+++ b/server/src/matcher/completion.lua
@@ -0,0 +1,8 @@
+local findResult = require 'matcher.find_result'
+
+return function (vm, pos)
+ local result = findResult(vm, pos)
+ if not result then
+ return nil
+ end
+end