-
Notifications
You must be signed in to change notification settings - Fork 66
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
YouCompleteMe Support #172
Comments
I am interested in your setup, can you post the YCM config bit? |
Sure! "youcompleteme options
let g:ycm_global_ycm_extra_conf='~/.vim/youcompleteme/.ycm_extra_conf.py'
" let g:ycm_path_to_python_interpreter='/usr/bin/python/'
"use omnicomplete whenever there's no completion engine in youcompleteme (for
"example, in the case of PHP)
set omnifunc=syntaxcomplete#Complete
" let g:ycm_key_invoke_completion = '<C-s>' " Ctrl-suggest - doesn't work
" because C-s freezes the command line
let g:ycm_key_invoke_completion = '<C-h>'
" let g:ycm_key_list_select_completion = ['<C-j>']
" let g:ycm_key_list_previous_completion = ['<C-k>']
let g:ycm_key_list_select_completion = ['<Tab>']
let g:ycm_key_list_previous_completion = ['<S-Tab>']
" Ultisnips
" let g:UltiSnipsExpandTrigger="<Tab>"
" let g:UltiSnipsJumpForwardTrigger="<Tab>"
" let g:UltiSnipsJumpBackwardTrigger="<S-Tab>"
let g:UltiSnipsExpandTrigger="<c-j>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>" I also have the following in vim/ftplugin/tex.vim " Add triggers to ycm for LaTeX-Box autocompletion
let g:ycm_semantic_triggers = {
\ 'tex' : ['{'],
\ } |
I'm having this problem as well. I have a pretty minimal ycm setup. It pretty much just sets up the semantic trigger on |
This issue still exists. It's because the LatexBox_completion_commands include a preceding backslash. You can work around this by changing in
to
|
First of all I must say that LaTeX-Box OmniCompletion works almost perfect with YouCompleteMe out of the box. The only complaint that I have is when it comes to command completion. I have set YouCompleteMe to pop up autocompletion whenever '{' and '' are pressed. The former, as mentioned before, works as you'd expect - it brings up a menu with the available environments. The latter, however, brings up a list of commands, only when one is selected, it gets added with an additional backslash '' in front of it. For example, if I press '' and then select '\begin', I end up getting '\begin{'. Of course, the expected output is '\begin{'. I should also mention that ref completion works exactly as expected out of the box as well.
Thanks!
The text was updated successfully, but these errors were encountered: