summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-25 20:01:46 +0100
committerw0rp <devw0rp@gmail.com>2017-06-25 20:01:46 +0100
commit7d73a1602b80e31f87abecf6c76ff9c1e117771a (patch)
treee79e60ebbc67d672a2e461693899e1c43b93a298 /README.md
parenta9b29fef28a72291ada90e30d8b25ee12351d825 (diff)
downloadale-7d73a1602b80e31f87abecf6c76ff9c1e117771a.zip
Explain how to use the airline extension better
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 13 insertions, 8 deletions
diff --git a/README.md b/README.md
index dacd93f0..223c8d00 100644
--- a/README.md
+++ b/README.md
@@ -298,14 +298,19 @@ highlight clear ALEWarningSign
### 5.iv. How can I show errors or warnings in my statusline?
-[vim-airline](https://github.com/vim-airline/vim-airline) integrates with
-ALE for displaying error information in the status bar. If you want to see
-the status for ALE in a nice format, it is recommended to use vim-airline
-with ALE.
-
-ALE offers the ability to show some information in statuslines with no extra
-plugins. ALE provides a function for getting a summary with the number of
-problems detected, and you can implement your own function for your statusline.
+[vim-airline](https://github.com/vim-airline/vim-airline) integrates with ALE
+for displaying error information in the status bar. If you want to see the
+status for ALE in a nice format, it is recommended to use vim-airline with ALE.
+The airline extension can be enabled by adding the following to your vimrc:
+
+```vim
+" Set this. Airline will handle the rest.
+let g:airline#extensions#ale#enabled = 1
+```
+
+If you don't want to use vim-airline, you can implement your own statusline
+function without adding any other plugins. ALE provides a function for counting
+the number of problems for this purpose, named `ale#statusline#Count`.
Say you want to display all errors as one figure, and all non-errors as another
figure. You can do the following: