From e235e5a6a5c09d98d523302ffde34bd9727762b5 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 3 Sep 2017 20:12:45 +0100 Subject: [PATCH] Make the grammar a little better for the g:ale_type_map option --- doc/ale.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/ale.txt b/doc/ale.txt index a8b3021..70f90cc 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1039,10 +1039,10 @@ g:ale_type_map *g:ale_type_map* Type: |Dictionary| Default: `{}` - This option can be set re-map problem types for linters. Each key in - the |Dictionary| should be the name of a linter, and each value must be - a |Dictionary| mapping error types from one type to another. The - following types are supported: + This option can be set re-map problem types for linters. Each key in the + |Dictionary| should be the name of a linter, and each value must be a + |Dictionary| mapping problem types from one type to another. The following + types are supported: `'E'` - `{'type': 'E'}` `'ES'` - `{'type': 'E', 'sub_type': 'style'}` @@ -1050,13 +1050,13 @@ g:ale_type_map *g:ale_type_map* `'WS'` - `{'type': 'W', 'sub_type': 'style'}` `'I'` - `{'type': 'I'}` - For example, if you want to turn flake8 errors into warnings, you can do + For example, if you want to turn flake8 errors into warnings, you can write the following: > let g:ale_type_map = {'flake8': {'ES': 'WS', 'E': 'W'}} < If you wanted to turn style errors and warnings into regular errors and - warnings, you can use the following: > + warnings, you can write the following: > let g:ale_type_map = {'flake8': {'ES': 'E', 'WS': 'W'}} <