You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to set corfu-auto-prefix length based on the language.
My use case is that: when I type english, I like it to be length of 3; when I type Chinese, I like it to be 2.
I have tried this, but to no void: (setq corfu-auto-prefix (if (looking-back "[[:alpha:]]") 3 2))
Thank you.
The text was updated successfully, but these errors were encountered:
I think that your setter should work if you change the value of corfu-auto-prefix locally in a :before advice of corfu--auto-complete. Maybe use A-Za-z instead of :alpha:? Did you try this? If you have separate buffers you can also change the prefix length buffer locally. But such a behavior is very special we cannot support it ootb.
Hi Minad,
Is there a way to set corfu-auto-prefix length based on the language.
My use case is that: when I type english, I like it to be length of 3; when I type Chinese, I like it to be 2.
I have tried this, but to no void:
(setq corfu-auto-prefix (if (looking-back "[[:alpha:]]") 3 2))
Thank you.
The text was updated successfully, but these errors were encountered: