diff options
-rw-r--r-- | test/busted/outputHandlers/nvim.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/busted/outputHandlers/nvim.lua b/test/busted/outputHandlers/nvim.lua index 17154f1aa2..191387e1b9 100644 --- a/test/busted/outputHandlers/nvim.lua +++ b/test/busted/outputHandlers/nvim.lua @@ -1,9 +1,11 @@ local pretty = require 'pl.pretty' local global_helpers = require('test.helpers') --- Colors are disabled. #15610 --- To enable: `local colors = require 'term.colors'` +-- Colors are disabled by default. #15610 local colors = setmetatable({}, {__index = function() return function(s) return s end end}) +if os.getenv "NVIM_COLORS" then + colors = require 'term.colors' +end return function(options) local busted = require 'busted' |