diff --git a/lua/neotest/consumers/summary/summary.lua b/lua/neotest/consumers/summary/summary.lua index 4d28c10..8da68db 100644 --- a/lua/neotest/consumers/summary/summary.lua +++ b/lua/neotest/consumers/summary/summary.lua @@ -99,7 +99,8 @@ function Summary:run() end canvas:write( vim.split(adapter_id, ":", { trimempty = true })[1] - .. (count == 0 and "" or string.format(" %d Tests Found", count)) .. "\n", + .. (count == 0 and "" or string.format(" %d Tests Found", count)) + .. "\n", { group = config.highlights.adapter_name } ) if tree:data().path ~= cwd then @@ -107,7 +108,7 @@ function Summary:run() canvas:write(root_dir .. "\n", { group = config.highlights.dir }) end self.components[adapter_id] = self.components[adapter_id] - or SummaryComponent(self.client, adapter_id) + or SummaryComponent(self.client, adapter_id) if config.summary.animated then if self.components[adapter_id]:render(canvas, tree, all_expanded, self.focused) then self.render_ready.set()