Merge pull request #424 from adriaanzon/command-enable-disable

Add :ALEEnable and :ALEDisable commands
This commit is contained in:
w0rp 2017-03-28 23:28:13 +01:00 committed by GitHub
commit 81b49b2dff
2 changed files with 6 additions and 1 deletions

View File

@ -594,6 +594,8 @@ ALENextWrap *ALENextWrap*
<
ALEToggle *ALEToggle*
ALEEnable *ALEEnable*
ALEDisable *ALEDisable*
Enable or disable ALE, including all of its autocmd events, loclist items,
quickfix items, signs, current jobs, etc. Calling this option will change

View File

@ -233,8 +233,11 @@ command! -bar ALENextWrap :call ale#loclist_jumping#Jump('after', 1)
" A command for showing error details.
command! -bar ALEDetail :call ale#cursor#ShowCursorDetail()
" A command for turning ALE on or off.
" Define commands for turning ALE on or off.
command! -bar ALEToggle :call s:ALEToggle()
command! -bar ALEEnable :if !g:ale_enabled | ALEToggle | endif
command! -bar ALEDisable :if g:ale_enabled | ALEToggle | endif
" A command for linting manually.
command! -bar ALELint :call ale#Queue(0, 'lint_file')