Merge pull request #730 from tweekmonster/django-plus

Add support for django-plus.vim
This commit is contained in:
Stanislav Seletskiy 2016-08-05 13:05:21 +07:00 committed by GitHub
commit b4c7a5788a

View File

@ -3,7 +3,7 @@ if exists("b:did_autoload_ultisnips") || !exists("g:_uspy")
" TODO(sirver): Add a test for that using a bad g:UltiSnipsPythonVersion
" setting. Without this fix moving the cursor will spam errors, with this
" it should not.
function! UltiSnips#FileTypeChanged()
function! UltiSnips#FileTypeChanged(...)
endfunction
finish
@ -116,9 +116,9 @@ function! UltiSnips#JumpForwards()
return ""
endfunction
function! UltiSnips#FileTypeChanged()
function! UltiSnips#FileTypeChanged(...)
exec g:_uspy "UltiSnips_Manager.reset_buffer_filetypes()"
exec g:_uspy "UltiSnips_Manager.add_buffer_filetypes('" . &ft . "')"
exec g:_uspy "UltiSnips_Manager.add_buffer_filetypes('" . (a:0 ? a:1 : &ft) . "')"
return ""
endfunction