aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennadii Chernyshchyk <genaloner@gmail.com>2023-03-29 21:33:55 +0300
committerHennadii Chernyshchyk <genaloner@gmail.com>2023-03-29 21:33:55 +0300
commit6e37ddc4702f100d18a4b4869ff89d275284b95b (patch)
treee370a2f870143dd900b5ebd12876a9fa5c52e892
parent659ac3a90e7770cf2e63eb9e08b68a4dff3e6ad4 (diff)
downloadneovim-tasks-6e37ddc4702f100d18a4b4869ff89d275284b95b.tar.gz
neovim-tasks-6e37ddc4702f100d18a4b4869ff89d275284b95b.zip
Apply formatting
-rw-r--r--lua/tasks/module/cargo.lua5
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