Consider adding <
, |
to default rust auto-pairs
#14198
-
Useful for generics and closures. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
both if them are also operators, i'm not sure if we can decide to autoclose them only in certain contexts |
Beta Was this translation helpful? Give feedback.
-
Fair point - would be cool if that's possible via tree sitter queries. |
Beta Was this translation helpful? Give feedback.
-
I don't want to add these as defaults. I tried |
Beta Was this translation helpful? Give feedback.
I don't want to add these as defaults. I tried
|
pairs for a while in my config but it gets annoying - it works for closures and incidentally for||
but not for some operators like|=
. Similar with<
/>
. I don't think you can reliably detect when these are meant to be paired or not even with syntax tree information