osyo-manga/vim-monster

No completion at all

Closed this issue · 8 comments

Hello!

I've installed rcodetools in ~/.gem and used the settings in my ~/.vimrc as described on the main page, but I get no completion at all, not even a pop-up menu (even if I manually enter ).
Instead, I get "monster.vim - empty completion" in the commandline. Presumably this means that vim isn't finding rcodetools? It's in my PATH as rct-complete so I'm not sure what the problem is...
Any ideas?

Sorry, forgot to add that I'm using neocomplete on linux. I don't seem to have any problems with autocomplete using other plugins. Thanks

hi.
Please tell me monster.vim and neocomplete.vim setting.

if !exists('g:neocomplete#force_omni_input_patterns')
let g:neocomplete#force_omni_input_patterns = {}
endif
let g:neocomplete#force_omni_input_patterns.ruby = '[^._\t].\w_|\h\w*::'

" Use neocomplete.vim
let g:neocomplete#sources#omni#input_patterns = {
\ "ruby" : '[^. _\t].\w_|\h\w*::',
}
let g:monster#completion#rcodetools#backend = "async_rct_complete"

to test it, I used the example as given on your page "Test.new.homu." etc/

hmm...
Please disable g:neocomplete#force_omni_input_patternssetting.

" Disable g:neocomplete#force_omni_input_patterns
" if !exists('g:neocomplete#force_omni_input_patterns')
" let g:neocomplete#force_omni_input_patterns = {}
" endif
" let g:neocomplete#force_omni_input_patterns.ruby = '[^.\t].\w|\h\w*::'

" Use g:neocomplete#sources#omni#input_patterns only
let g:neocomplete#sources#omni#input_patterns = {
\ "ruby" : '[^. \t].\w|\h\w*::',
}

Done, but still nothing I'm afraid. Same error message: empty-completion. Not sure what the problem is...

hmm...
Use rct_complete and disable neocomplete.vim.

let g:monster#completion#rcodetools#backend = "rct_complete"

Problem solved. Nothing wrong with the ~/.vimrc or the plugin. For some reason, even though it was in the system path, vim wasn't finded rcodetools (I'm on arch linux). I simply reinstalled it system-wide and now it's working perfectly! どうもありがとう (I hope that's correct!)

OK :)