Allow using ":EmmetInstall | OtherCommand"

Example of usage:

autocmd FileType html EmmetInstall | setlocal omnifunc=emmet#completeTag
This commit is contained in:
Cade-Forester
2015-02-25 23:33:09 +05:00
parent 3d6862d5d1
commit 971a13ca98

View File

@@ -150,7 +150,7 @@ function! s:install_plugin(mode, buffer)
endfor endfor
endfunction endfunction
command! -nargs=0 EmmetInstall call <SID>install_plugin(get(g:, 'user_emmet_mode', 'a'), 1) command! -nargs=0 -bar EmmetInstall call <SID>install_plugin(get(g:, 'user_emmet_mode', 'a'), 1)
if get(g:, 'user_emmet_install_global', 1) if get(g:, 'user_emmet_install_global', 1)
call s:install_plugin(get(g:, 'user_emmet_mode', 'a'), 0) call s:install_plugin(get(g:, 'user_emmet_mode', 'a'), 0)