mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(build): add an env var to re-enable the colors
This commit is contained in:
parent
413e86869e
commit
5087347e3b
@ -1,9 +1,11 @@
|
|||||||
local pretty = require 'pl.pretty'
|
local pretty = require 'pl.pretty'
|
||||||
local global_helpers = require('test.helpers')
|
local global_helpers = require('test.helpers')
|
||||||
|
|
||||||
-- Colors are disabled. #15610
|
-- Colors are disabled by default. #15610
|
||||||
-- To enable: `local colors = require 'term.colors'`
|
|
||||||
local colors = setmetatable({}, {__index = function() return function(s) return s end end})
|
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)
|
return function(options)
|
||||||
local busted = require 'busted'
|
local busted = require 'busted'
|
||||||
|
Loading…
Reference in New Issue
Block a user