summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-09-08 21:40:10 +0100
committerw0rp <devw0rp@gmail.com>2020-09-08 21:40:10 +0100
commit7d90ff56d96d601478f00895e009ae63a7d8b4bb (patch)
tree8e20d801244d0571cc3680d2b6c42be3a342dadf /plugin/ale.vim
parentb4b75126f9eae30da8f5e0cb9ec100feb38c1cb6 (diff)
downloadale-7d90ff56d96d601478f00895e009ae63a7d8b4bb.zip
Close #3333 - Add an ALECompletePost event
Add an `ALECompletePost` event along with everything needed to make it useful for its primary purpose: fixing code after inserting completions. * `ALEFix` can now be called with a bang (`!`) to suppress errors. * A new `ALELintStop` command lets you stop linting, and start it later.
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 9cebb71f..18d867ee 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -195,6 +195,8 @@ command! -bar ALEStopAllLSPs :call ale#lsp#reset#StopAllLSPs()
" A command for linting manually.
command! -bar ALELint :call ale#Queue(0, 'lint_file')
+" Stop current jobs when linting.
+command! -bar ALELintStop :call ale#engine#Stop(bufnr(''))
" Define a command to get information about current filetype.
command! -bar ALEInfo :call ale#debugging#Info()
@@ -204,7 +206,7 @@ command! -bar ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
command! -bar -nargs=1 ALEInfoToFile :call ale#debugging#InfoToFile(<f-args>)
" Fix problems in files.
-command! -bar -nargs=* -complete=customlist,ale#fix#registry#CompleteFixers ALEFix :call ale#fix#Fix(bufnr(''), '', <f-args>)
+command! -bar -bang -nargs=* -complete=customlist,ale#fix#registry#CompleteFixers ALEFix :call ale#fix#Fix(bufnr(''), '<bang>', <f-args>)
" Suggest registered functions to use for fixing problems.
command! -bar ALEFixSuggest :call ale#fix#registry#Suggest(&filetype)