diff --git a/runtime/doc/health.txt b/runtime/doc/health.txt index 33a15064ed..42d7be2ade 100644 --- a/runtime/doc/health.txt +++ b/runtime/doc/health.txt @@ -72,6 +72,11 @@ in the health report: >vim autocmd FileType checkhealth :set modifiable | silent! %s/\v( ?[^\x00-\x7F])//g < +Sometimes you might need to suppress filetype warnings if you have specified +them dynamically. For example with the yaml.ansible filetype: >vim + autocmd FileType checkhealth :set modifiable | silent! g/Unknown filetype 'yaml\.ansible'/d +< + -------------------------------------------------------------------------------- Create a healthcheck *health-dev* diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua index 331dca71f3..8cfc4ab79d 100644 --- a/runtime/lua/vim/health.lua +++ b/runtime/lua/vim/health.lua @@ -63,7 +63,11 @@ --- ```vim --- autocmd FileType checkhealth :set modifiable | silent! %s/\v( ?[^\x00-\x7F])//g --- ``` ---- +--- Sometimes you might need to suppress filetype warnings if you have specified them dynamically. +--- For example with the yaml.ansible filetype: +--- ```vim +--- autocmd FileType checkhealth :set modifiable | silent! g/Unknown filetype 'yaml\.ansible'/d +--- ``` ---
help
 --- --------------------------------------------------------------------------------
 --- Create a healthcheck                                    *health-dev*