-
Notifications
You must be signed in to change notification settings - Fork 25
wondering if it's possible to make it work with YouCompleteMe #27
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
Comments
No plans like this, sorry. But typescript-tools implements Vim's standard omnifunc protocol, which YouCompleteMe claims to support. |
Confirming that it does work just fine with YouCompleteMe through the omnifunc protocol. |
Thanks for the confirmation. |
@MalucoMarinero could you share the pertinent parts of your .vimrc? I've been pulling my hair out trying to make the two work together. |
@travisby Nothing at all really is specific to it. Installed with Vundle Going to be going back into a typescript project shortly so I'll have some more experience with the tools then. |
@travisby I just installed typescript today and it worked out of the box with YouCompleteMe. You can view my vimrc here EDIT: Whoops I noticed after writing this that I used a different plugin for vim. I found this thread when I was trying to confirm if it was just working natively or just was the YouCompleteMe working off of the known variables in a file. |
I just installed this and it does work out of the box with YouCompleteMe. To make it trigger automatically after a "." I added a small blib to my vimrc. if !exists("g:ycm_semantic_triggers")
let g:ycm_semantic_triggers = {}
endif
let g:ycm_semantic_triggers['typescript'] = ['.'] I suggest adding that into this ftplugin as it is save even if people do not use YCM. My complete setup using YouCompleteMe, typescript-tools, typescript-vim, and NeoBundle as my plugin manager looks like this: NeoBundle 'clausreinke/typescript-tools'
NeoBundle 'leafgarland/typescript-vim'
NeoBundle 'Valloric/YouCompleteMe'
if !exists("g:ycm_semantic_triggers")
let g:ycm_semantic_triggers = {}
endif
let g:ycm_semantic_triggers['typescript'] = ['.'] Now opening a |
@SirVer Thanks for the tip! Do you have any idea on how I can get paramteres to pop up? |
@dani-h I do not understand the question. With my setup described above, the parameters pop up after each '.' automatically. However there seems to be no support for typescript 1.4 features in this repo yet, so sometimes it breaks down. |
@clausreinke I felt that was WIP. I tried to use it with a small angular toy project and it failed to pick up the definitions from https://github.com/borisyankov/DefinitelyTyped/blob/master/angularjs/angular.d.ts most of the time (it only worked once and it threw an error message and stopped working later). Do you want bug reports for that branch? |
@SirVer yes, please - the testing branch is far enough along that bug reports are welcome. I hope to fix the ones I know about next week. |
https://github.com/Valloric/YouCompleteMe
The text was updated successfully, but these errors were encountered: