diff options
-rwxr-xr-x | nvim-wrapper | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nvim-wrapper b/nvim-wrapper index 3f9b1adcc4c3..327803f25a3b 100755 --- a/nvim-wrapper +++ b/nvim-wrapper @@ -82,8 +82,10 @@ def main(): options = processArgv() cmd = [] + TERM_CMD[:-2] + options['gterm'] + TERM_CMD[-2:] + options['nvim'] env = os.environ.copy() - env['NVIM_TUI_ENABLE_CURSOR_SHAPE'] = '1' - env['NVIM_TUI_ENABLE_TRUE_COLOR'] = '1' + if 'NVIM_TUI_ENABLE_CURSOR_SHAPE' not in env: + env['NVIM_TUI_ENABLE_CURSOR_SHAPE'] = '1' + if 'NVIM_TUI_ENABLE_TRUE_COLOR' not in env: + env['NVIM_TUI_ENABLE_TRUE_COLOR'] = '1' with open(os.devnull, 'wb') as fnull: subprocess.Popen(cmd, stdout=fnull, |