-
Notifications
You must be signed in to change notification settings - Fork 6
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
Does company-flx work with anaconda-mode? #17
Comments
You are correct I would need to manually advise each backend I want to support to include fuzzy matching, and in the case of large packages like Perhaps if I can find a large swath of time to work on adding more backends, I'll give it a shot. My real hope is that packages like |
Thank you very much for the explanation! |
@proofit404, do you think this could be done easily by advising |
Hello. @PythonNut I can't move company backend for anaconda-mode to complete-at-point-function implementation. Reason for this is really simple. anaconda-mode is written in asynchronous style to provide better user experience. Since complete-at-point-function require synchronous interface i.e. call function and obtain completion result immediately. anaconda-mode works differently. When we call completion function it returns immediately. Then anaconda-mode perform background network interaction with its server written in python. When result is available we trigger its handler. Show company popup for example. I can add company-flx support to company-anaconda if you explain me how :) |
Hi @proofit404, thanks for getting back to me! I was actually wondering if there was a way to add support without modifying I really only need to be able to control two things:
If you can point me towards some functions that I could override in |
If you need function to change the order of candidates then I can add this as a variable holding function with candidates list as an argument. |
@proofit404 fuzzy matching is probably going to be the more challenging of the two. In fact, I already have a company transformer that will sort the candidates already, so matching is really the only thing |
Just tell me what I need to do on my side :D |
@proofit404 ideally, you would implement a way for me to supply (by setting a variable or overriding a function) my own matching predicate, which would take the user's "prefix" and a candidate and return whether the candidate should be displayed. |
So, what is the status? This seems to be partially done in Dec 2019. |
Hi,
First of all, I found this plugin recently and now really enjoying it. It works perfectly in most cases, but, unfortunately, doesn't work with anaconda-mode, which I use for Python development.
Am I correct and it's not a bug and have something to do with how anaconda handles a list of possible completions? Thanks in advance!
The text was updated successfully, but these errors were encountered: