Skip to content

Commit

Permalink
feat(neotest): respect vim.g.icons_enabled
Browse files Browse the repository at this point in the history
Closes #1207
  • Loading branch information
mehalter committed Sep 18, 2024
1 parent d14b5c5 commit 2197737
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/astrocommunity/test/neotest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ return {
opts = { integrations = { neotest = true } },
},
},
opts = function(_, opts)
if vim.g.icons_enabled == false then
opts.icons = {
failed = "X",
notify = "!",
passed = "O",
running = "*",
skipped = "-",
unknown = "?",
watching = "W",
}
end
end,
config = function(_, opts)
vim.diagnostic.config({
virtual_text = {
Expand Down

0 comments on commit 2197737

Please sign in to comment.