From f37896a8988157e5d8d518702e059d5313e162d2 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Wed, 12 Oct 2016 15:13:22 -0500 Subject: [PATCH] Implement autocommand support --- autoload/ale/engine.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 1d0ad3d5..e29f3fda 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -113,6 +113,9 @@ function! s:HandleExit(job) abort call ale#statusline#Update(l:buffer, g:ale_buffer_loclist_map[l:buffer]) endif + " Call user autocommands. This allows users to hook into ALE's lint cycle. + doautocmd User ALELint + " Mark line 200, column 17 with a squiggly line or something " matchadd('ALEError', '\%200l\%17v') endfunction