Skip to content

Commit

Permalink
feat(ui): add NeotestUnknown highlight group (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyazdani42 authored Jul 17, 2022
1 parent cb4e8c2 commit 7e13978
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/neotest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "│",
Expand Down
2 changes: 2 additions & 0 deletions lua/neotest/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -116,6 +117,7 @@ local default_config = {
select_win = "NeotestWinSelect",
marked = "NeotestMarked",
target = "NeotestTarget",
unknown = "NeotestUnknown",
},
floating = {
border = "rounded",
Expand Down
2 changes: 1 addition & 1 deletion lua/neotest/consumers/summary/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e13978

Please sign in to comment.