mirror of
https://github.com/neovim/neovim.git
synced 2026-07-31 12:49:11 +00:00
docs(health): avoid warnings for dynamic filetypes #41036
Problem: Dynamic filetypes defined by `vim.filetype.add` may show health warnings. Solution: Document a way to suppress these harmless warnings.
This commit is contained in:
@@ -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*
|
||||
|
||||
|
||||
@@ -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
|
||||
--- ```
|
||||
---<pre>help
|
||||
--- --------------------------------------------------------------------------------
|
||||
--- Create a healthcheck *health-dev*
|
||||
|
||||
Reference in New Issue
Block a user