From 66e99e3f68689c35cbc3dbf26c2177ee3e394e99 Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Wed, 7 Aug 2024 17:36:36 +0200 Subject: [PATCH] fix: log tables using linebreaks and tabs for easier reading --- lua/neotest-golang/logging.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lua/neotest-golang/logging.lua b/lua/neotest-golang/logging.lua index 3cd8fdc6..c9abe9bd 100644 --- a/lua/neotest-golang/logging.lua +++ b/lua/neotest-golang/logging.lua @@ -13,11 +13,6 @@ local function clean_output(str) return str end -local function table_to_string(tbl) - local result = vim.inspect(tbl) - return clean_output(result) -end - ---@param input any ---@return string local function handle_input(input) @@ -27,7 +22,7 @@ local function handle_input(input) local result = "" for _, v in ipairs(input) do if type(v) == "table" then - result = result .. table_to_string(v) .. " " + result = result .. vim.inspect(v) .. " " elseif type(v) == "string" then result = result .. clean_output(v) .. " " else