diff options
Diffstat (limited to 'lua/tasks')
-rw-r--r-- | lua/tasks/module/cargo.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/tasks/module/cargo.lua b/lua/tasks/module/cargo.lua index 7c3ffdd..8caf6ab 100644 --- a/lua/tasks/module/cargo.lua +++ b/lua/tasks/module/cargo.lua | |||
@@ -97,8 +97,9 @@ local function get_cargo_subcommands() | |||
97 | if index ~= 1 and not line:find('alias:') then | 97 | if index ~= 1 and not line:find('alias:') then |
98 | local subcommand_end = line:find(' ', start_offset) | 98 | local subcommand_end = line:find(' ', start_offset) |
99 | local subcommand = line:sub(start_offset, subcommand_end and subcommand_end - 1 or nil) | 99 | local subcommand = line:sub(start_offset, subcommand_end and subcommand_end - 1 or nil) |
100 | cargo_subcommands[subcommand] = | 100 | cargo_subcommands[subcommand] = function(module_config, _) |
101 | function(module_config, _) return { cmd = 'cargo', args = vim.list_extend({ subcommand }, utils.split_args(module_config.global_cargo_args)), errorformat = errorformat } end | 101 | return { cmd = 'cargo', args = vim.list_extend({ subcommand }, utils.split_args(module_config.global_cargo_args)), errorformat = errorformat } |
102 | end | ||
102 | end | 103 | end |
103 | end | 104 | end |
104 | 105 | ||