django-plus.vim
django-plus.vim copied to clipboard
what's python file filetype?
b:is_django
show equal 1, UltiSnips
still used python.snippets.
:set filetype
show equal python
.
when detected project is django, can automatically change filetype?
i use ycm + ultisnips.
Is this what is the problem ?
Can you confirm that django
is not set in UltiSnips with:
:execute g:_uspy 'print(UltiSnips_Manager._buffer_filetypes['.bufnr('%').'])'
I think it'll be better if I submit a PR to UltiSnips to work with django-plus.
Now that I re-read your issue, are you saying you want the filetype
to be set to django
? Even if the filetype
is python
, UltiSnips should still use python.snippets
and django.snippets
.
@gatspy https://github.com/SirVer/ultisnips/pull/730
:execute g:_uspy 'print(UltiSnips_Manager._buffer_filetypes['.bufnr('%').'])'
show results['python', 'all']
.
au FileType python set ft=python.django
au FileType html set ft=htmldjango.html
add this settings in virmc, ultisnipts work fine, but django-plus autocomplete can't working.
ycm conflict with this plug? i decided use your dotfiles to try django-plus.
Thank you for your enthusiastic reply.
Yes, there's currently an issue with YCM: #5
I don't use YCM, so I'm not sure how to fix it at this time.