Merge pull request #15637 from bfredl/colorsss

fix(build): add an env var to re-enable the colors
This commit is contained in:
Björn Linse 2021-09-12 08:34:13 +02:00 committed by GitHub
commit e2c3bcd52c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'