diff --git a/doc/neotest.txt b/doc/neotest.txt index afcc576b..605406de 100644 --- a/doc/neotest.txt +++ b/doc/neotest.txt @@ -75,7 +75,8 @@ neotest.setup({user_config}) *neotest.setup()* select_win = "NeotestWinSelect", skipped = "NeotestSkipped", target = "NeotestTarget", - test = "NeotestTest" + test = "NeotestTest", + unknown = "NeotestUnknown", }, icons = { child_indent = "│", diff --git a/lua/neotest/config/init.lua b/lua/neotest/config/init.lua index 65c63519..ecbb6581 100644 --- a/lua/neotest/config/init.lua +++ b/lua/neotest/config/init.lua @@ -16,6 +16,7 @@ vim.cmd([[ hi default NeotestWinSelect ctermfg=Cyan guifg=#00f1f5 gui=bold hi default NeotestMarked ctermfg=Brown guifg=#F79000 gui=bold hi default NeotestTarget ctermfg=Red guifg=#F70067 + hi default link NeotestUnknown Normal ]]) ---@class neotest.Config @@ -116,6 +117,7 @@ local default_config = { select_win = "NeotestWinSelect", marked = "NeotestMarked", target = "NeotestTarget", + unknown = "NeotestUnknown", }, floating = { border = "rounded", diff --git a/lua/neotest/consumers/summary/component.lua b/lua/neotest/consumers/summary/component.lua index 4aaca4ef..204de0e8 100644 --- a/lua/neotest/consumers/summary/component.lua +++ b/lua/neotest/consumers/summary/component.lua @@ -198,7 +198,7 @@ function SummaryComponent:_state_icon(position) if self.client:is_running(position.id, { adapter = self.adapter_id }) then return config.icons.running, config.highlights.running end - return config.icons.unknown, "Normal" + return config.icons.unknown, config.highlights.unknown end return config.icons[result.status], config.highlights[result.status] end