Closed kevin4fly closed 9 years ago
@wellle Any time.
@justinmk: After rebuilding youcompleteme it finally works! Thanks :+1:
Now I can look into the tmux-complete integration :wink:
:cake: Glad we reached a resolution. Incidentally, regular Vim might work for you now that your python environment is sane...
My current Vim doesn't have +python
and I'm fine with using neovim to test youcompleteme integration. I might actually start using neovim instead of vim in the near future.
Any updates on this one? I moved from neocomplete to ycm -and loved it far better. This is the only thing I miss.
@sencer: I'll see if I can make any progress this weekend.
Actually I've taken a quick look and it seems to work:
In my vimrc
/nvimrc
I have this (using NeoBundle
, but shouldn't be relevant):
if has('nvim')
NeoBundle 'Valloric/YouCompleteMe', {'build':{'mac':'./install.sh'}}
let g:tmuxcomplete#trigger = 'omnifunc'
endif
YouCompleteMe
seems to work. When typing the beginning of an existing word it gets suggested automatically.ls
and see Makefile
, which is not found in my vimrc
which I have open in Vim)Make
doesn't suggest anything automatically.Make
shows the tmux-complete
suggestion Makefile
.Make
also shows Makefile
, so YouCompleteMe
is successfully invoking tmux-complete
via omnifunc.Please reopen if this doesn't work for you.
OK, that is working. I was expecting to be able to use both tmux completion and whatever omnicompletion exists for a a filetype. I suppose it is not possible with YCM?
I guess it might be too slow for realtime suggestions so I think it's better to trigger it explicitly.
I am not sure I understand you point.
For example when writing a ruby code with YCM, this is what you get normally: completefunc=youcompleteme#Complete
and omnifunc=rubycomplete#Complete
.
How can one trigger tmux completion in this case?
Neovim now includes a :CheckHealth
command to hopefully make this less painful.
Installing the latest
YouCompleteMe
andtmux-complete.vim
plugins respectively. Addlet g:tmuxcomplete#trigger = 'omnifunc'
to~/.vimrc
.Pressing
<c-space>
doesn't trigger tmux completion in vim.