taoso / phpcd.vim

phpcd - A Intelligent/Smart PHP Complete Daemon Plugin for Vim/NeoVim
https://github.com/taoso/phpcd.vim
Apache License 2.0
389 stars 45 forks source link

How to use the FuzzyMatcher? #166

Closed Slamdunk closed 3 years ago

Slamdunk commented 5 years ago

Hi, I've seen the PrefixMatcher is hardcoded in PHPCD:

https://github.com/lvht/phpcd.vim/blob/f46b5da7140365eceda096e2e5dbf094489d00ac/php/PHPCD.php#L63

And even though there is a setMatchType method, it seems to me that there's no way to configure it without altering the phpcd.vim source code, i.e. with a variable, is it?

taoso commented 5 years ago

The fuzzy matcher is abandoned. Please use something like deoplete.vim instead.

Slamdunk commented 5 years ago

Hi, I'm already using deoplete, but it can't leverage the features of PHPCD Reflection, AFAIK deoplete can only work with tags out-of-the-box.

This is also the reason I opened https://github.com/lvht/phpcd.vim/pull/165:

maiusc

minusc

taoso commented 5 years ago

Have you run the :UpdateRemotePlugins?

Slamdunk commented 5 years ago

I'm using VIM 8.0.1766, :UpdateRemotePlugins only works on NeoVIM, doesn't it?

taoso commented 5 years ago

deoplete seems to be neovim only

Slamdunk commented 5 years ago

No it isn't, it works flawlessly on Vim 8, which ports async jobs in Vim too. It is in the readme of Deoplete: Deoplete is the abbreviation of "dark powered neo-completion". It provides an extensible and asynchronous completion framework for neovim/Vim8.

taoso commented 5 years ago

phpcd offers https://github.com/lvht/phpcd.vim/blob/master/rplugin/python3/deoplete/sources/phpcd.py.

however, it seems breaks. So we need to adopt to the newer deoplete.

taoso commented 3 years ago

deoplete support has also been deprecated