Closed thorstengrothe closed 4 months ago
Your hook is very unnecessary code-wise, you just need the add-to-list
call. Sounds like you might have something else that updates the list of functions, but sure I'll add a doc note about maybe needing a hook.
It looks like you're registering it under :init
, you should be using :config
as per the README :smile:
This fix refers to my issue Completions are nil.
In the meantime I found the problem. It is not enough to register
yasnippet-capf
withOne must write it in a hook, like so
and register it under
cape
for the equivalent modes:I guess this should be mentioned in the docs. Now it works perfectly for me :-)