Allow commands to be chained using a `|`

This commit is contained in:
Adriaan Zonnenberg 2017-03-28 19:27:07 +02:00
parent ab3fd2e849
commit fe47649a23
1 changed files with 9 additions and 9 deletions

View File

@ -225,23 +225,23 @@ endfunction
call s:ALEInitAuGroups()
" Define commands for moving through warnings and errors.
command! ALEPrevious :call ale#loclist_jumping#Jump('before', 0)
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)
command! -bar ALEPrevious :call ale#loclist_jumping#Jump('before', 0)
command! -bar ALEPreviousWrap :call ale#loclist_jumping#Jump('before', 1)
command! -bar ALENext :call ale#loclist_jumping#Jump('after', 0)
command! -bar ALENextWrap :call ale#loclist_jumping#Jump('after', 1)
" A command for showing error details.
command! ALEDetail :call ale#cursor#ShowCursorDetail()
command! -bar ALEDetail :call ale#cursor#ShowCursorDetail()
" A command for turning ALE on or off.
command! ALEToggle :call s:ALEToggle()
command! -bar ALEToggle :call s:ALEToggle()
" A command for linting manually.
command! ALELint :call ale#Queue(0, 'lint_file')
command! -bar ALELint :call ale#Queue(0, 'lint_file')
" Define a command to get information about current filetype.
command! ALEInfo :call ale#debugging#Info()
command! -bar ALEInfo :call ale#debugging#Info()
" The same, but copy output to your clipboard.
command! ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
command! -bar ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
" <Plug> mappings for commands
nnoremap <silent> <Plug>(ale_previous) :ALEPrevious<Return>