summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-03-22 08:57:29 +0000
committerw0rp <devw0rp@gmail.com>2017-03-22 08:57:29 +0000
commit59b5644fb3d893c8146edd5e370f02ab114c09c2 (patch)
treecb997e90d6d2439a3765834dafdd21f2b3935e95
parent18bae7da2e51c31b8a3e8eb70e3eea4c9bbf85bc (diff)
downloadale-59b5644fb3d893c8146edd5e370f02ab114c09c2.zip
Clean up the documentation some more, and make the description of the ALELint autocmd clearer
-rw-r--r--doc/ale.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index bf700e0a..a5630977 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1280,6 +1280,7 @@ ale#engine#ManageDirectory(buffer, directory) *ale#engine#ManageDirectory()*
ale#linter#Define(filetype, linter) *ale#linter#Define()*
+
Given a |String| for a filetype and a |Dictionary| Describing a linter
configuration, add a linter for the given filetype. The dictionaries each
offer the following options:
@@ -1468,6 +1469,7 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
ale#linter#Get(filetype) *ale#linter#Get()*
+
Return all of linters configured for a given filetype as a |List| of
|Dictionary| values in the format specified by |ale#linter#Define()|.
@@ -1481,6 +1483,7 @@ ale#linter#Get(filetype) *ale#linter#Get()*
ale#statusline#Status() *ale#statusline#Status()*
+
Return a formatted string that can be added to the statusline.
The output's format is defined in |`g:ale_statusline_format`|.
To enable it, the following should be present in your |statusline| settings: >
@@ -1488,12 +1491,16 @@ ale#statusline#Status() *ale#statusline#Status()*
ALELint *ALELint-autocmd*
+
This |User| autocommand is triggered by ALE every time it completes a lint
- operation. It can be used to update statuslines, send notifications, or
- complete any other operation that needs to be done after a lint run.
- It can be used simply:
- autocmd User ALELint echom "ALE run!"
+ cycle. It can be used to update statuslines, send notifications, or
+ complete any other operation that needs to be done after linting has been
+ performed.
+ For example, you can echo a message when linting is complete like so:
+ >
+ autocmd User ALELint echom "ALE run!"
+<
===============================================================================
8. Special Thanks *ale-special-thanks*