aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-07 00:53:26 +0100
committerGitHub <noreply@github.com>2017-11-07 00:53:26 +0100
commit7bcbf5d45620209b652b7bdd669878dbacd08dbe (patch)
tree795ffd62e47e068ef7c14c1513bc9ba8b7b94bff
parentc598c3ac770b4ae1bdcda06224fa18300eac1455 (diff)
downloadrneovim-7bcbf5d45620209b652b7bdd669878dbacd08dbe.tar.gz
rneovim-7bcbf5d45620209b652b7bdd669878dbacd08dbe.tar.bz2
rneovim-7bcbf5d45620209b652b7bdd669878dbacd08dbe.zip
health.vim: show TUI-related env vars (#7498)
ref #7473 ref #7490
-rw-r--r--runtime/autoload/health/nvim.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim
index 7f6e943dc9..f8beaf6a0f 100644
--- a/runtime/autoload/health/nvim.vim
+++ b/runtime/autoload/health/nvim.vim
@@ -173,6 +173,11 @@ function! s:check_terminal() abort
call health#report_info('key_dc (kdch1) terminfo entry: '
\ .(empty(kbs_entry) ? '? (not found)' : kdch1_entry))
endif
+ for env_var in ['XTERM_VERSION', 'VTE_VERSION', 'TERM_PROGRAM', 'COLORTERM', 'SSH_TTY']
+ if !empty(eval('$'.env_var))
+ call health#report_info(printf("$%s='%s'", env_var, eval('$'.env_var)))
+ endif
+ endfor
endfunction
function! health#nvim#check() abort