Add UltiSnipsFileType augroup and unset it if UltiSnips is disabled
This commit is contained in:
parent
3208654c4e
commit
7da9dbe2af
@ -16,10 +16,14 @@ endfunction
|
|||||||
|
|
||||||
call UltiSnips#bootstrap#Bootstrap()
|
call UltiSnips#bootstrap#Bootstrap()
|
||||||
if !exists("g:_uspy")
|
if !exists("g:_uspy")
|
||||||
" Delete the autocommands defined in plugin/UltiSnips.vim.
|
" Delete the autocommands defined in plugin/UltiSnips.vim and
|
||||||
|
" ftdetect/UltiSnips.vim.
|
||||||
augroup UltiSnips
|
augroup UltiSnips
|
||||||
au!
|
au!
|
||||||
augroup END
|
augroup END
|
||||||
|
augroup UltiSnipsFileType
|
||||||
|
au!
|
||||||
|
augroup END
|
||||||
finish
|
finish
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
" This has to be called before ftplugins are loaded. Therefore
|
" This has to be called before ftplugins are loaded. Therefore
|
||||||
" it is here in ftdetect though it maybe shouldn't
|
" it is here in ftdetect though it maybe shouldn't
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
autocmd FileType * call UltiSnips#FileTypeChanged()
|
augroup UltiSnipsFileType
|
||||||
|
au!
|
||||||
|
autocmd FileType * call UltiSnips#FileTypeChanged()
|
||||||
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user