Skip to content

Commit

Permalink
Update lua/neotest-golang/lib/cmd.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Fredrik Averpil <[email protected]>
  • Loading branch information
augbed and fredrikaverpil authored Sep 4, 2024
1 parent fe8db64 commit f88f965
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/neotest-golang/lib/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function M.golist_data(cwd)
"-json",
}
-- combine base command, user args and packages(./...)
vim.list_extend(vim.list_extend(go_list_command, options.get().go_list_args or {}), { "./..." })
vim.list_extend(
vim.list_extend(go_list_command, options.get().go_list_args or {}),
{ "./..." }
)

local go_list_command_concat = table.concat(go_list_command, " ")
logger.debug("Running Go list: " .. go_list_command_concat .. " in " .. cwd)
Expand Down

0 comments on commit f88f965

Please sign in to comment.