mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 07:32:24 +00:00
Add information that ALEFix can now accept arguments
This commit is contained in:
parent
f16384f323
commit
6f6d35c0bd
@ -356,8 +356,7 @@ function! s:RunFixer(options) abort
|
||||
call ale#fix#ApplyFixes(l:buffer, l:input)
|
||||
endfunction
|
||||
|
||||
function! s:GetCallbacks(linters) abort
|
||||
function! s:GetCallbacks(buffer) abort
|
||||
function! s:GetCallbacks(buffer, linters) abort
|
||||
if len(a:linters)
|
||||
let l:callback_list = a:linters
|
||||
elseif type(get(b:, 'ale_fixers')) is type([])
|
||||
|
10
doc/ale.txt
10
doc/ale.txt
@ -473,10 +473,12 @@ ftplugin files for different filetypes.
|
||||
===============================================================================
|
||||
4. Fixing Problems *ale-fix*
|
||||
|
||||
ALE can fix problems with files with the |ALEFix| command. When |ALEFix| is
|
||||
run, the variable |g:ale_fixers| will be read for getting a |List| of commands
|
||||
for filetypes, split on `.`, and the functions named in |g:ale_fixers| will be
|
||||
executed for fixing the errors.
|
||||
ALE can fix problems with files with the |ALEFix| command. |ALEFix|
|
||||
accepts names of fixers to be applied as arguments. Alternatively,
|
||||
when no arguments are provided, the variable |g:ale_fixers| will be
|
||||
read for getting a |List| of commands for filetypes, split on `.`, and
|
||||
the functions named in |g:ale_fixers| will be executed for fixing the
|
||||
errors.
|
||||
|
||||
The |ALEFixSuggest| command can be used to suggest tools that be used to
|
||||
fix problems for the current buffer.
|
||||
|
Loading…
Reference in New Issue
Block a user