diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-22 15:31:39 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-22 15:31:39 +0000 |
commit | 5d2ab192cf4ecce604cee4e8870ff7d5d3f47ed8 (patch) | |
tree | 46a8f8ff89cc7107ce9b892dbcbe8f82f5b4b08a /doc | |
parent | 5ed6f66f7779bea092671521ad5743914612a18a (diff) | |
download | ale-5d2ab192cf4ecce604cee4e8870ff7d5d3f47ed8.zip |
Support fixer aliases, and make prettier-eslint and prettier-standard just work
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index ff8ac082..f7141cf9 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1780,7 +1780,8 @@ ale#engine#ManageDirectory(buffer, directory) *ale#engine#ManageDirectory()* files. -ale#fix#registry#Add(name, func, filetypes, desc) *ale#fix#registry#Add()* +ale#fix#registry#Add(name, func, filetypes, desc, [aliases]) + *ale#fix#registry#Add()* Given a |String| `name` for a name to add to the registry, a |String| `func` for a function name, a |List| `filetypes` for a list of filetypes to @@ -1790,6 +1791,11 @@ ale#fix#registry#Add(name, func, filetypes, desc) *ale#fix#registry#Add()* The `name` can then be used for |g:ale_fixers| in place of the function name, and suggested for fixing files. + An optional |List| of |String|s for aliases can be passed as the `aliases` + argument. These aliases can also be used for looking up a fixer function. + ALE will search for fixers in the registry first by `name`, then by their + `aliases`. + ale#linter#Define(filetype, linter) *ale#linter#Define()* |