diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-09-12 08:34:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-12 08:34:13 +0200 |
commit | e2c3bcd52cb64a0138c31b610c29c55ca54b3f6a (patch) | |
tree | e5e926d5f400a43c6b0e8003ee31d0a4cd497932 | |
parent | 413e86869ef147431a78946562c125938b41f533 (diff) | |
parent | 5087347e3b3c8846e2019f36b674d788139c7f69 (diff) | |
download | rneovim-e2c3bcd52cb64a0138c31b610c29c55ca54b3f6a.tar.gz rneovim-e2c3bcd52cb64a0138c31b610c29c55ca54b3f6a.tar.bz2 rneovim-e2c3bcd52cb64a0138c31b610c29c55ca54b3f6a.zip |
Merge pull request #15637 from bfredl/colorsss
fix(build): add an env var to re-enable the colors
-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' |