summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-28 19:36:16 +0100
committerw0rp <devw0rp@gmail.com>2017-10-28 19:36:16 +0100
commit5fc2b98b73b74a0d57037683f0c809eac41368f0 (patch)
treec0f1b45cb936c19130d1a91c283d8f310546bd8a /plugin
parentea3a8e3c62d3051fee9342ece2e04bcd04b392b6 (diff)
downloadale-5fc2b98b73b74a0d57037683f0c809eac41368f0.zip
#817 Add commands for toggling ALE for only the current buffer
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 83ca2dd0..3e1803e5 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -224,6 +224,10 @@ 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()
+" 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(''))
" A command for linting manually.
command! -bar ALELint :call ale#Queue(0, 'lint_file')