Move autocmd commands out of the toggle file, to improve load times

This commit is contained in:
w0rp
2018-04-23 10:16:48 +01:00
parent ef130c4428
commit 7d6a303592
4 changed files with 81 additions and 82 deletions

View File

@@ -1,6 +1,6 @@
Before:
function! CheckAutocmd(group)
call ale#toggle#InitAuGroups()
call ale#autocmd#InitAuGroups()
redir => l:output
execute 'silent! autocmd ' . a:group
@@ -59,7 +59,7 @@ After:
call ale#completion#Disable()
endif
call ale#toggle#InitAuGroups()
call ale#autocmd#InitAuGroups()
Execute (g:ale_lint_on_text_changed = 0 should bind no events):
let g:ale_lint_on_text_changed = 0