From 219773776bf1b75fcfd0885937db8cbde42aa5a0 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 18 Sep 2024 13:16:44 -0400 Subject: [PATCH] feat(neotest): respect `vim.g.icons_enabled` Closes #1207 --- lua/astrocommunity/test/neotest/init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua/astrocommunity/test/neotest/init.lua b/lua/astrocommunity/test/neotest/init.lua index ca4df4d36..46169da5b 100644 --- a/lua/astrocommunity/test/neotest/init.lua +++ b/lua/astrocommunity/test/neotest/init.lua @@ -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 = {