fix(checkhealth): disable 'listchars' #31245

Problem:
'listchars' (in particular multispace) breaks visual heading due to
`Whitespace` highlight group.

Solution:
Disable 'list' (and thus all listchars) by default for `checkhealth`
files.

Fixes #31145
This commit is contained in:
Yochem van Rosmalen 2024-11-18 00:33:34 +01:00 committed by GitHub
parent cc6992f1ca
commit 965dc81f81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,11 +8,11 @@ endif
runtime! ftplugin/help.vim
setlocal wrap breakindent linebreak
setlocal wrap breakindent linebreak nolist
let &l:iskeyword='!-~,^*,^|,^",192-255'
if exists("b:undo_ftplugin")
let b:undo_ftplugin .= "|setl wrap< bri< lbr< kp< isk<"
let b:undo_ftplugin .= "|setl wrap< bri< lbr< kp< isk< list<"
else
let b:undo_ftplugin = "setl wrap< bri< lbr< kp< isk<"
let b:undo_ftplugin = "setl wrap< bri< lbr< kp< isk< list<"
endif