aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYochem van Rosmalen <git@yochem.nl>2024-11-18 00:33:34 +0100
committerGitHub <noreply@github.com>2024-11-17 15:33:34 -0800
commit965dc81f818e50b5078d4b7efa5fbb8b771560f8 (patch)
tree0c9c268e60e65362cbfbae023ae5db9aeefde1a3
parentcc6992f1ca443f4da01cb4d57159d4cef37b36b7 (diff)
downloadrneovim-965dc81f818e50b5078d4b7efa5fbb8b771560f8.tar.gz
rneovim-965dc81f818e50b5078d4b7efa5fbb8b771560f8.tar.bz2
rneovim-965dc81f818e50b5078d4b7efa5fbb8b771560f8.zip
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
-rw-r--r--runtime/ftplugin/checkhealth.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/ftplugin/checkhealth.vim b/runtime/ftplugin/checkhealth.vim
index 62a1970b4a..00f24a2912 100644
--- a/runtime/ftplugin/checkhealth.vim
+++ b/runtime/ftplugin/checkhealth.vim
@@ -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