Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what's python file filetype? #6

Open
gatspy opened this issue Aug 4, 2016 · 5 comments
Open

what's python file filetype? #6

gatspy opened this issue Aug 4, 2016 · 5 comments

Comments

@gatspy
Copy link

gatspy commented Aug 4, 2016

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 ?

@tweekmonster
Copy link
Owner

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.

@tweekmonster
Copy link
Owner

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.

@tweekmonster
Copy link
Owner

@gatspy
Copy link
Author

gatspy commented Aug 4, 2016

: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.

@tweekmonster
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants