-
Notifications
You must be signed in to change notification settings - Fork 11
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
Popup does not appear #2
Comments
If you add this |
@prabirshrestha thanks for quick reply. With At first try it |
Seems to work perfectly fine with vim8 on windows that comes with inbuilt ruby onmifunc. For me both syntax and omni sources works. Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-necosyntax.vim'
Plug 'yami-beta/asyncomplete-omni.vim'
autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
imap <c-space> <Plug>(asyncomplete_force_refresh)
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "\<cr>"
autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif
au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
\ 'name': 'omni',
\ 'whitelist': ['*'],
\ 'completor': function('asyncomplete#sources#omni#completor'),
\ }))
au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#necosyntax#get_source_options({
\ 'name': 'necosyntax',
\ 'whitelist': ['*'],
\ 'completor': function('asyncomplete#sources#necosyntax#completor'),
\ }))
Another option would be to also try vim-lsp with asyncomplete using asyncomplete-lsp.vim. This is better than omnicompletion since the actual lang server is started in different process and provides various other features such as go to definition, document formatting, find references and so on. This allow the actual completion to be purly async. A quick search let me to this https://github.com/mtsmfm/language_server-ruby and rubyide/vscode-ruby#118 (comment) |
Thanks for detailed troubleshooting instructions! I'm sorry but I map incorrectly map Here is the minimal vimrc that I've been using for testing. I'm using neovim (
It's only with Ruby. Autocompletion for gocode and buffers works fine.
No I'm not
No I don't
I tried with the vimrc I posted above. Still no popup.
I tried it but it didn't even created the log file for me. |
@lowski Sorry for my late reply. If this branch resolve this issue, I merge it into master. @prabirshrestha Thank you for help to resolve ! |
@yami-beta I've switched to that branch but I don't see pop-up (neither when I type nor I hit
|
@lowski Sorry, I misspelled. |
@yami-beta this works perfectly, thanks! Please merge to |
Merged! |
Hi!
I'm testing it with NeoVim on Ruby files and it does not seem to work. When I invoke completion using
<C-X><C-O>
it works fine but the completion popup (fromasynccomplete-omni
) does not automatically appear as I type.Fragments from my
init.vim
file:Any idea what can be wrong?
The text was updated successfully, but these errors were encountered: