diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-18 13:21:14 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-20 19:02:36 +0100 |
commit | 8ebd15a54dba474ee634e0087bb460ca6e7d8428 (patch) | |
tree | 7e3190318f89530a4dbbf088681afb9f23ff672f /plugin/ale.vim | |
parent | 7d8390d43e83f3e097469fd3e4f65f07a3035903 (diff) | |
download | ale-8ebd15a54dba474ee634e0087bb460ca6e7d8428.zip |
Add commands to run ALEFix, and some tests to cover functionality so far. Add a simple autopep8 function.
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r-- | plugin/ale.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index 0e8c369f..28b8bebf 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -60,6 +60,9 @@ let g:ale_filetype_blacklist = ['nerdtree', 'unite', 'tags'] " This Dictionary configures which linters are enabled for which languages. let g:ale_linters = get(g:, 'ale_linters', {}) +" This Dictionary configures which functions will be used for fixing problems. +let g:ale_fixers = get(g:, 'ale_fixers', {}) + " This Dictionary allows users to set up filetype aliases for new filetypes. let g:ale_linter_aliases = get(g:, 'ale_linter_aliases', {}) @@ -276,6 +279,9 @@ command! -bar ALEInfo :call ale#debugging#Info() " The same, but copy output to your clipboard. command! -bar ALEInfoToClipboard :call ale#debugging#InfoToClipboard() +" Fix problems in files. +command! -bar ALEFix :call ale#fix#Fix() + " <Plug> mappings for commands nnoremap <silent> <Plug>(ale_previous) :ALEPrevious<Return> nnoremap <silent> <Plug>(ale_previous_wrap) :ALEPreviousWrap<Return> @@ -284,6 +290,7 @@ nnoremap <silent> <Plug>(ale_next_wrap) :ALENextWrap<Return> nnoremap <silent> <Plug>(ale_toggle) :ALEToggle<Return> nnoremap <silent> <Plug>(ale_lint) :ALELint<Return> nnoremap <silent> <Plug>(ale_detail) :ALEDetail<Return> +nnoremap <silent> <Plug>(ale_fix) :ALEFix<Return> " Housekeeping |