roxma / nvim-completion-manager

:warning: PLEASE USE https://github.com/ncm2/ncm2 INSTEAD
MIT License
917 stars 49 forks source link

Javacomplete2 #101

Closed SteveCharleston closed 7 years ago

SteveCharleston commented 7 years ago

Hi, I tried to use the plugin https://github.com/artur-shaik/vim-javacomplete2 with nvim-completion-manager, with some success. Methods are completed, after I type a dot but only after I've typed two more characters, not immediatly. Fuzzy matching is not working as well. I have configured CM like this:

au User CmSetup call cm#register_source({'name' : 'cm-java',
        \ 'priority': 9, 
        \ 'scoping': 0,
        \ 'scopes': ['java'],
        \ 'abbreviation': 'java',
        \ 'cm_refresh_patterns': ['\w\+\.$'],
        \ 'cm_refresh': {'omnifunc': 'javacomplete#Complete'},
        \ })
partounian commented 7 years ago

I would also be interested in support for Java & Scala.

roxma commented 7 years ago

Try change the cm_refresh_patterns into this:

    \ 'cm_refresh_patterns': ['\w+\.'],
roxma commented 7 years ago

Closing due to inactivity.

I would also be interested in support for Java & Scala.

@partounian the javacomplete2 is mostly written in vimscript, which is not async. The omnifunc version is the best choice in this case.

A better alternative is eclim, https://github.com/roxma/nvim-completion-manager/issues/85, but I don't have much time, and I'm not a java developer either. So I have no plan for this currently.