Fix #288 - Add a command for running ALE

This commit is contained in:
w0rp
2017-02-28 09:10:58 +00:00
parent 31d328b272
commit ceeff6c723
3 changed files with 75 additions and 2 deletions

View File

@@ -208,9 +208,12 @@ command! ALEPreviousWrap :call ale#loclist_jumping#Jump('before', 1)
command! ALENext :call ale#loclist_jumping#Jump('after', 0)
command! ALENextWrap :call ale#loclist_jumping#Jump('after', 1)
" A command for turning ALE on or off.
command! ALEToggle :call s:ALEToggle()
" A command for linting manually.
command! ALELint :call ale#Queue(0)
" Define command to get information about current filetype.
" Define a command to get information about current filetype.
command! ALEInfo :call ale#debugging#Info()
" The same, but copy output to your clipboard.
command! ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
@@ -221,6 +224,7 @@ nnoremap <silent> <Plug>(ale_previous_wrap) :ALEPreviousWrap<Return>
nnoremap <silent> <Plug>(ale_next) :ALENext<Return>
nnoremap <silent> <Plug>(ale_next_wrap) :ALENextWrap<Return>
nnoremap <silent> <Plug>(ale_toggle) :ALEToggle<Return>
nnoremap <silent> <Plug>(ale_lint) :ALELint<Return>
" Housekeeping