Is there a way of asking company
to sort the results it shows based on past choices? The custom variable company-transformers
controls this behaviour. The only built-in choices are company-sort-by-occurrence
and company-sort-by-backend-importance
. Is there an existing method, possibly from another package, that I could use to do adaptive filtering of these results?
Add a comment
|
2 Answers
Besides company-statics, you can also write functions to do the sorting yourself, and then you add the function to the variable company-transformers
. I did this for sorting python private methods last, see: How to make private python methods the last company-mode choices?