diff options
Diffstat (limited to 'server/src/matcher')
-rw-r--r-- | server/src/matcher/completion.lua | 8 | ||||
-rw-r--r-- | server/src/matcher/init.lua | 1 |
2 files changed, 9 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 diff --git a/server/src/matcher/init.lua b/server/src/matcher/init.lua index 9174d839..27adbbea 100644 --- a/server/src/matcher/init.lua +++ b/server/src/matcher/init.lua @@ -7,6 +7,7 @@ local api = { diagnostics = require 'matcher.diagnostics', findResult = require 'matcher.find_result', findLib = require 'matcher.find_lib', + completion = require 'matcher.completion', vm = require 'matcher.vm', } |