diff options
author | kylo252 <[email protected]> | 2022-07-31 14:28:43 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-07-31 14:28:43 +0200 |
commit | 6fbefdacd35f03b8146490613c54e7865d06a77f (patch) | |
tree | 70e378c86c411b4c959e7f04851263fc96ad752e /tests/lvim/helpers.lua | |
parent | b04aefbb79670b115f4f363906d6d294b3d0a2a3 (diff) | |
parent | dec21bbab6cf9102e236806e20273d08f32f8716 (diff) |
Merge branch 'rolling'
Diffstat (limited to 'tests/lvim/helpers.lua')
-rw-r--r-- | tests/lvim/helpers.lua | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/lvim/helpers.lua b/tests/lvim/helpers.lua index 2d8477de..0ce1a57b 100644 --- a/tests/lvim/helpers.lua +++ b/tests/lvim/helpers.lua @@ -3,16 +3,14 @@ local M = {} function M.search_file(file, args) local Job = require "plenary.job" local stderr = {} - local stdout, ret = Job - :new({ - command = "grep", - args = { args, file }, - cwd = get_cache_dir(), - on_stderr = function(_, data) - table.insert(stderr, data) - end, - }) - :sync() + local stdout, ret = Job:new({ + command = "grep", + args = { args, file }, + cwd = get_cache_dir(), + on_stderr = function(_, data) + table.insert(stderr, data) + end, + }):sync() return ret, stdout, stderr end |