Open MagicMarvel opened 5 months ago
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:
smart_switch = true
and do not add "nvim-treesitter/nvim-treesitter"
into the dependencies?
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