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.
This commit is contained in:
Justin M. Keyes
2022-11-11 21:33:31 -05:00
committed by GitHub
parent 2425fe2dc5
commit 4d2373f5f6
5 changed files with 124 additions and 116 deletions

View File

@@ -1,20 +1,18 @@
" Vim filetype plugin
" Language: Neovim checkhealth buffer
" Last Change: 2021 Dec 15
" Language: Nvim :checkhealth buffer
" Last Change: 2022 Nov 10
if exists("b:did_ftplugin")
finish
endif
runtime! ftplugin/markdown.vim ftplugin/markdown_*.vim ftplugin/markdown/*.vim
runtime! ftplugin/help.vim
setlocal wrap breakindent linebreak
setlocal conceallevel=2 concealcursor=nc
setlocal keywordprg=:help
let &l:iskeyword='!-~,^*,^|,^",192-255'
if exists("b:undo_ftplugin")
let b:undo_ftplugin .= "|setl wrap< bri< lbr< cole< cocu< kp< isk<"
let b:undo_ftplugin .= "|setl wrap< bri< lbr< kp< isk<"
else
let b:undo_ftplugin = "setl wrap< bri< lbr< cole< cocu< kp< isk<"
let b:undo_ftplugin = "setl wrap< bri< lbr< kp< isk<"
endif