Skip to content

How to use company-yasnippet before company-ispell? #1453

Answered by dgutov
zhenhua-wang asked this question in Q&A
Discussion options

You must be logged in to vote

There are basically two ways to do that:

  • Write your own backend which will be a simple wrapper that calls both backends and returns the completions from the one that has them.
  • Add an advice to company-yasnippet to add special handling to the prefix method which would call the logic in candidates right away, and if nothing's found, return nil from prefix already.

You could also try using M-x company-other-backend, which is a command to be used explicitly (through a key binding of your choice) that iterates through the backends in the list and will make sure you get to the one that returns some completions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zhenhua-wang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants