From daecbad543c68de1c0a2d8c368e4edde2f90461e Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 29 Oct 2017 17:03:29 +0000 Subject: Fix #719 - Add ALEReset and ALEResetBuffer for removing problems for all buffers or one buffer --- plugin/ale.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugin/ale.vim') diff --git a/plugin/ale.vim b/plugin/ale.vim index f700affc..0b5ac78e 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -224,10 +224,12 @@ command! -bar ALEDetail :call ale#cursor#ShowCursorDetail() command! -bar ALEToggle :call ale#toggle#Toggle() command! -bar ALEEnable :call ale#toggle#Enable() command! -bar ALEDisable :call ale#toggle#Disable() +command! -bar ALEReset :call ale#toggle#Reset() " Commands for turning ALE on or off for a buffer. command! -bar ALEToggleBuffer :call ale#toggle#ToggleBuffer(bufnr('')) command! -bar ALEEnableBuffer :call ale#toggle#EnableBuffer(bufnr('')) command! -bar ALEDisableBuffer :call ale#toggle#DisableBuffer(bufnr('')) +command! -bar ALEResetBuffer :call ale#toggle#ResetBuffer(bufnr('')) " A command for linting manually. command! -bar ALELint :call ale#Queue(0, 'lint_file') @@ -252,9 +254,11 @@ nnoremap (ale_last) :ALELast nnoremap (ale_toggle) :ALEToggle nnoremap (ale_enable) :ALEEnable nnoremap (ale_disable) :ALEDisable +nnoremap (ale_reset) :ALEReset nnoremap (ale_toggle_buffer) :ALEToggleBuffer nnoremap (ale_enable_buffer) :ALEEnableBuffer nnoremap (ale_disable_buffer) :ALEDisableBuffer +nnoremap (ale_reset_buffer) :ALEResetBuffer nnoremap (ale_lint) :ALELint nnoremap (ale_detail) :ALEDetail nnoremap (ale_fix) :ALEFix -- cgit v1.2.3