elken / yasnippet-capf

Completion-At-Point Extension for YASnippet
GNU General Public License v3.0
40 stars 9 forks source link

what does the package do in practical terms? #12

Closed ville-h closed 1 year ago

ville-h commented 1 year ago

What does the package do in practical terms? I am not very familiar with how emacs completion works, so just saying "capf" doesn't quite light up the bulb for me.

Let's say I use company to show completions and currently have company-capf and company-yasnippet as its backends for various modes. Would the addition of this package make yasnippets work with backends set to company-capf only? Would this then help the completion accuracy and/or ordering?

I know this is not really an issue per se, but didn't see discussions feature enabled for this project where I could ask this kind of question.

elken commented 1 year ago

What does the package do in practical terms? I am not very familiar with how emacs completion works, so just saying "capf" doesn't quite light up the bulb for me.

The manual has a whole section on completion which should be a good starting point.

Let's say I use company to show completions and currently have company-capf and company-yasnippet as its backends for various modes. Would the addition of this package make yasnippets work with backends set to company-capf only?

I don't use company so I can't comment for certain on how that interacts but in theory yes

Would this then help the completion accuracy and/or ordering?

Shouldn't do, but as before I don't use company so I'm not familiar with how company-yasnippet does anything there.

I know this is not really an issue per se, but didn't see discussions feature enabled for this project where I could ask this kind of question.

That's fine, I'juve just added them. Hope this answers everything :smile: