mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 18:37:02 +10:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user