diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-11-11 21:33:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 18:33:31 -0800 |
commit | 4d2373f5f6570fcc851b818198f45fbda391fd6a (patch) | |
tree | 07dfe76d60f55eaa7dfe18c4bdbd61fcee709f17 /runtime/lua | |
parent | 2425fe2dc5e5985779912319433ddf914a20dd6a (diff) | |
download | rneovim-4d2373f5f6570fcc851b818198f45fbda391fd6a.tar.gz rneovim-4d2373f5f6570fcc851b818198f45fbda391fd6a.tar.bz2 rneovim-4d2373f5f6570fcc851b818198f45fbda391fd6a.zip |
feat(checkhealth): use "help" syntax, avoid tabpage #20879
- If Nvim was just started, don't create a new tab.
- Name the buffer "health://".
- Use "help" syntax instead of "markdown". It fits better, and
eliminates various workarounds.
- Simplfy formatting, avoid visual noise.
- Don't print a "INFO" status, it is noisy.
- Drop the ":" after statuses, they are already UPPERCASE and highlighted.
Diffstat (limited to 'runtime/lua')
-rw-r--r-- | runtime/lua/nvim/health.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/lua/nvim/health.lua b/runtime/lua/nvim/health.lua index 413eae0bf9..0dd32ddc0b 100644 --- a/runtime/lua/nvim/health.lua +++ b/runtime/lua/nvim/health.lua @@ -359,14 +359,12 @@ local function check_terminal() \ ..'\%(conemu\|vtpcon\|win32con\)'))) call health#report_error('command failed: '.cmd."\n".out) else - call health#report_info('key_backspace (kbs) terminfo entry: ' - \ .(empty(kbs_entry) ? '? (not found)' : kbs_entry)) - call health#report_info('key_dc (kdch1) terminfo entry: ' - \ .(empty(kbs_entry) ? '? (not found)' : kdch1_entry)) + call health#report_info(printf('key_backspace (kbs) terminfo entry: `%s`', (empty(kbs_entry) ? '? (not found)' : kbs_entry))) + call health#report_info(printf('key_dc (kdch1) terminfo entry: `%s`', (empty(kbs_entry) ? '? (not found)' : kdch1_entry))) endif for env_var in ['XTERM_VERSION', 'VTE_VERSION', 'TERM_PROGRAM', 'COLORTERM', 'SSH_TTY'] if exists('$'.env_var) - call health#report_info(printf("$%s='%s'", env_var, eval('$'.env_var))) + call health#report_info(printf('$%s="%s"', env_var, eval('$'.env_var))) endif endfor endf |