-
Notifications
You must be signed in to change notification settings - Fork 63
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
Custom triggers? #8
Comments
Now you can config tex completion like this: let g:completor_tex_omni_trigger = '\\\\(:?'
\ . '\w*cite\w*(?:\s*\[[^]]*\]){0,2}\s*{[^}]*'
\ . '|\w*ref(?:\s*\{[^}]*|range\s*\{[^,}]*(?:}{)?)'
\ . '|hyperref\s*\[[^]]*'
\ . '|includegraphics\*?(?:\s*\[[^]]*\]){0,2}\s*\{[^}]*'
\ . '|(?:include(?:only)?|input)\s*\{[^}]*'
\ . '|\w*(gls|Gls|GLS)(pl)?\w*(\s*\[[^]]*\]){0,2}\s*\{[^}]*'
\ . '|includepdf(\s*\[[^]]*\])?\s*\{[^}]*'
\ . '|includestandalone(\s*\[[^]]*\])?\s*\{[^}]*'
\ .')$' |
Uhm, now I'm getting this:
|
The pr #15 fixed the problem. You can try it again. |
Awesome, it's looking great! 🎉 |
Now it has UltiSnips integration. |
Awesome, thank you! ❤️ |
Good job here. :)
I'm not sure how this works behind the scenes, but vimtex has its own omni completion function (it completes bibliography entry names, source files to include and so on) and when using NeoComplete or YouCompleteMe you can set up custom triggers to call it, like this:
(The full documentation is here.)
Is there a way to do something like that here?
Also those other plugins work with UltiSnips too, completing the snippet triggers. That would be great!
The text was updated successfully, but these errors were encountered: