diff --git a/README.md b/README.md index 7551d863..1a8687b7 100644 --- a/README.md +++ b/README.md @@ -1805,21 +1805,22 @@ let g:ycm_echo_current_diagnostic = 1 ### The `g:ycm_filter_diagnostics` option -This option controls which diagnostics will be rendered by YCM. This option holds -a dictionary of key-values, where the keys are Vim's filetype strings delimited by -commas and values are dictionaries describing the filter. +This option controls which diagnostics will be rendered by YCM. This option +holds a dictionary of key-values, where the keys are Vim's filetype strings +delimited by commas and values are dictionaries describing the filter. A filter is a dictionary of key-values, where the keys are the type of filter, -and the value is a list of arguments to that filter. In the case of just a single -item in the list, you may omit the brackets and just provide the argument directly. -If any filter matches a diagnostic, it will be dropped and YCM will not render it. +and the value is a list of arguments to that filter. In the case of just a +single item in the list, you may omit the brackets and just provide the argument +directly. If any filter matches a diagnostic, it will be dropped and YCM will +not render it. The following filter types are supported: - "regex": Accepts a string [regular expression][python-re]. This type matches when the regex (treated as case-insensitive) is found in the diagnostic text. -- "level": Accepts a string level, either "warning" or "error." This type matches -when the diagnostic has the same level. +- "level": Accepts a string level, either "warning" or "error." This type +matches when the diagnostic has the same level. NOTE: The regex syntax is **NOT** Vim's, it's [Python's][python-re].