-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Feature Request] IM could switch intelligently maybe.... #24
Comments
Great idea! PR welcome. The only thing I'd like to mention is to keep compatibility with current configurations, I'd like to see the user's current configurations remain available and unaffected when the new update is used, only users who have actively set up the use of intelligently toggles and configured the treesitter correctly will be able to use this feature. |
Thank you for sharing your thoughts. I'll ensure that the current configurations remain intact. Users who have set up intelligent toggles and treesitter correctly will benefit from this feature. |
Thanks for you work, it looks good. And I have several questions:
|
First of all, I wanted to express my gratitude for creating such an impressive plugin!
I have a suggestion: it would be great if it could intelligently recognize which input method (IM) is needed. As a Chinese user, I use English in normal mode and also in insert mode, except when inputting comments and strings. Therefore, by using treesitter to logically analyze the current position, it can infer which language should be used at the moment.
However, currently, this plugin seems to only support switching between the default input method (IM) and the IM used by the user last time. Adding this logic would lead to huge changes in the codebase. I am very willing to contribute code to this repository and would like to hear your thoughts.
In this code,
alternative_im
meanszh
,default _im
meansen
The text was updated successfully, but these errors were encountered: