Search for matching brackets before adding one #10025
Replies: 4 comments 1 reply
-
Even on the same line, typing
Edit for clarification: |
Beta Was this translation helpful? Give feedback.
-
I don't understand why it is intentional |
Beta Was this translation helpful? Give feedback.
-
its intentional because:
|
Beta Was this translation helpful? Give feedback.
-
I do still figuring out if the autopairs can be powered by tree-sitter. Other more mature editor has been able to handle better, so Helix should be. Probably, we just don't insert the auto pair if on the next tree-sitter's ERROR within a smallest scope that contains current insertion and the closing bracket actually contains an orphaned closing pair. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, if we have:
... typing { automatically makes it to be {} which doesn't make sense
Beta Was this translation helpful? Give feedback.
All reactions