Make ALEFix support arguments

This commit is contained in:
fenuks
2018-04-12 02:23:58 +02:00
parent f9ba3d924f
commit a591b191db
3 changed files with 37 additions and 5 deletions

View File

@@ -263,7 +263,7 @@ command! -bar ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
command! -bar -nargs=1 ALEInfoToFile :call ale#debugging#InfoToFile(<f-args>)
" Fix problems in files.
command! -bar ALEFix :call ale#fix#Fix(bufnr(''), '')
command! -bar -nargs=* -complete=customlist,ale#fix#registry#CompleteFixers ALEFix :call ale#fix#Fix(bufnr(''), '', <f-args>)
" Suggest registered functions to use for fixing problems.
command! -bar ALEFixSuggest :call ale#fix#registry#Suggest(&filetype)