Skip to content

Commit

Permalink
chore: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Aug 26, 2024
1 parent 69bacc6 commit 6d6ad11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/neotest/consumers/summary/summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ 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
local root_dir = nio.fn.fnamemodify(tree:data().path, ":.")
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()
Expand Down

0 comments on commit 6d6ad11

Please sign in to comment.