93be385d38
When lazy loading UltiSnips on specific filetypes ([vim-plug](https://github.com/junegunn/vim-plug) and [NeoBundle](https://github.com/Shougo/neobundle.vim) can do that), UltiSnips#FileTypeChanged() function can be undefined while ftdetect/UltiSnips.vim is loading.
9 lines
296 B
VimL
9 lines
296 B
VimL
" This has to be called before ftplugins are loaded. Therefore
|
|
" it is here in ftdetect though it maybe shouldn't
|
|
if has("autocmd")
|
|
augroup UltiSnipsFileType
|
|
au!
|
|
autocmd FileType * if exists('*UltiSnips#FileTypeChanged')|call UltiSnips#FileTypeChanged()|endif
|
|
augroup END
|
|
endif
|