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
< character in company-yasnippet is not working #1268
Comments
|
Thanks, can repro. It's actually more difficult to fix than I initially imagined because yasnippet supports having multiple keys (starting at different positions) at the same time. So one solution would be to bring "per-completion prefixes" support to Companyy, and another - to add some fuzziness in matching and forget about aligning completions to the text. And fix the prefix<->key mismatch in Neither is exactly trivial, so I'm going to let this simmer for a little while. Thanks for the report, either way. |
|
Continuing on from #1407 If we were to make this scenario a little bit easier, some details could help. @zhenhua-wang First and foremost, how do you use It's easy to add a customization that would work well the the last kind of usage, but it's harder when we talk about grouping. |
|
Thanks for checking this! In my config, I have I also tried to call In any case, it seems that the issue may be related to the functions
Yes, as far as i know, this only happens in org-mode. |
|
If you're okay with this usage only successful when Maybe with some future changes other situations will improve too, but I can't promise when. |
|
I see. That sounds good for now. Thank you. |
|
All right, I've looked at the existing workaround inside So this should take care of the problems that have been mentioned here, although some edge cases might remain (please report). |
|
commit bc3e0fd results in error in org-mode when typing #+begin_src |
|
My emacs config: |
|
@erusyd Could you The output of |
|
Debugger entered--Lisp error: (wrong-type-argument listp 3) |
|
company-backends: ((company-capf :with company-yasnippet) Used backend: (company-capf :with company-yasnippet) Value of c-a-p-f: (pcomplete-completions-at-point t) |
|
Thanks!
Where does `my-company-yasnippet-disable-inline` come from?
|
|
Oh, that's my own elisp function |
|
Okay, so this is where it errors out: because BTW, what is the main purpose of this advice? The distinguish yasnippet's snippets from the others by lsp-mode? Otherwise, the "kind" icon should already indicate that it is in fact a snippet. |
|
I added this function long time ago, I've forgotten why. So I choose to comment it out. |
Describe the issue
please see screenshot.
this is connected with yasnippets and company-yasnippet.el
when i insert <e , then only completions with e are showed
the same for <v or <i or <c
so in summary:
< character is ignored (and probably other similar characters like # or ^ or >)
Expected behavior
completion (suggestions) should appear also for special characters like < * % #
Screenshots
screenshot:
https://imgur.com/yyBRKZS.png
but <ex is working - but only after insertion of whole <ex (should be suggested earlier)
info
my whole config is here:
https://github.com/rdbeni0/emacs.d/blob/main/elisp/cfg-company-yasnippets.el
The text was updated successfully, but these errors were encountered: